mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 14:03:05 +00:00
rtl8188eu: Fix checkpatch errors in include/*.h - part 1
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f9d86b986b
commit
9dd1827027
45 changed files with 4057 additions and 4114 deletions
|
@ -25,11 +25,11 @@
|
|||
|
||||
|
||||
#ifndef OID_802_11_CAPABILITY
|
||||
#define OID_802_11_CAPABILITY 0x0d010122
|
||||
#define OID_802_11_CAPABILITY 0x0d010122
|
||||
#endif
|
||||
|
||||
#ifndef OID_802_11_PMKID
|
||||
#define OID_802_11_PMKID 0x0d010123
|
||||
#define OID_802_11_PMKID 0x0d010123
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -45,16 +45,16 @@
|
|||
#define OID_NDIS_SEG9 0x0D010200
|
||||
#define OID_NDIS_SEG10 0x0D020200
|
||||
|
||||
#define SZ_OID_NDIS_SEG1 23
|
||||
#define SZ_OID_NDIS_SEG2 3
|
||||
#define SZ_OID_NDIS_SEG3 6
|
||||
#define SZ_OID_NDIS_SEG4 6
|
||||
#define SZ_OID_NDIS_SEG5 4
|
||||
#define SZ_OID_NDIS_SEG6 8
|
||||
#define SZ_OID_NDIS_SEG7 7
|
||||
#define SZ_OID_NDIS_SEG8 36
|
||||
#define SZ_OID_NDIS_SEG9 24
|
||||
#define SZ_OID_NDIS_SEG10 19
|
||||
#define SZ_OID_NDIS_SEG1 23
|
||||
#define SZ_OID_NDIS_SEG2 3
|
||||
#define SZ_OID_NDIS_SEG3 6
|
||||
#define SZ_OID_NDIS_SEG4 6
|
||||
#define SZ_OID_NDIS_SEG5 4
|
||||
#define SZ_OID_NDIS_SEG6 8
|
||||
#define SZ_OID_NDIS_SEG7 7
|
||||
#define SZ_OID_NDIS_SEG8 36
|
||||
#define SZ_OID_NDIS_SEG9 24
|
||||
#define SZ_OID_NDIS_SEG10 19
|
||||
|
||||
/* For Realtek-defined OIDs */
|
||||
#define OID_MP_SEG1 0xFF871100
|
||||
|
@ -63,15 +63,13 @@
|
|||
#define OID_MP_SEG3 0xFF818700
|
||||
#define OID_MP_SEG4 0xFF011100
|
||||
|
||||
#define DEBUG_OID(dbg, str) \
|
||||
if ((!dbg)) \
|
||||
{ \
|
||||
RT_TRACE(_module_rtl871x_ioctl_c_,_drv_info_,("%s(%d): %s", __func__, __LINE__, str)); \
|
||||
#define DEBUG_OID(dbg, str) \
|
||||
if ((!dbg)) { \
|
||||
RT_TRACE(_module_rtl871x_ioctl_c_, _drv_info_, \
|
||||
("%s(%d): %s", __func__, __LINE__, str)); \
|
||||
}
|
||||
|
||||
|
||||
enum oid_type
|
||||
{
|
||||
enum oid_type {
|
||||
QUERY_OID,
|
||||
SET_OID
|
||||
};
|
||||
|
@ -99,11 +97,11 @@ struct oid_par_priv
|
|||
|
||||
struct oid_obj_priv {
|
||||
unsigned char dbg; /* 0: without OID debug message 1: with OID debug message */
|
||||
NDIS_STATUS (*oidfuns)(struct oid_par_priv *poid_par_priv);
|
||||
int (*oidfuns)(struct oid_par_priv *poid_par_priv);
|
||||
};
|
||||
|
||||
#if defined(_RTW_MP_IOCTL_C_)
|
||||
static NDIS_STATUS oid_null_function(struct oid_par_priv* poid_par_priv)
|
||||
static int oid_null_function(struct oid_par_priv* poid_par_priv)
|
||||
{
|
||||
_func_enter_;
|
||||
_func_exit_;
|
||||
|
@ -115,23 +113,14 @@ static NDIS_STATUS oid_null_function(struct oid_par_priv* poid_par_priv)
|
|||
extern struct iw_handler_def rtw_handlers_def;
|
||||
#endif
|
||||
|
||||
extern NDIS_STATUS drv_query_info(
|
||||
struct net_device *MiniportAdapterContext,
|
||||
NDIS_OID Oid,
|
||||
void * InformationBuffer,
|
||||
u32 InformationBufferLength,
|
||||
u32* BytesWritten,
|
||||
u32* BytesNeeded
|
||||
);
|
||||
int drv_query_info(struct net_device *miniportadaptercontext, NDIS_OID oid,
|
||||
void *informationbuffer, u32 informationbufferlength,
|
||||
u32 *byteswritten, u32 *bytesneeded);
|
||||
|
||||
extern NDIS_STATUS drv_set_info(
|
||||
struct net_device *MiniportAdapterContext,
|
||||
NDIS_OID Oid,
|
||||
void * InformationBuffer,
|
||||
u32 InformationBufferLength,
|
||||
u32* BytesRead,
|
||||
u32* BytesNeeded
|
||||
);
|
||||
int drv_set_info(struct net_device *MiniportAdapterContext,
|
||||
NDIS_OID oid, void *informationbuffer,
|
||||
u32 informationbufferlength, u32 *bytesread,
|
||||
u32 *bytesneeded);
|
||||
|
||||
extern int ui_pid[3];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue