mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 21:43:06 +00:00
Fix some of the sparse warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d4fa4d178f
commit
300892ebfd
14 changed files with 686 additions and 767 deletions
|
@ -353,7 +353,7 @@ typedef struct _EDCA_TURBO_
|
|||
{
|
||||
BOOLEAN bCurrentTurboEDCA;
|
||||
BOOLEAN bIsCurRDLState;
|
||||
#if (DM_ODM_SUPPORT_TYPE == ODM_CE )
|
||||
#if (DM_ODM_SUPPORT_TYPE == ODM_CE)
|
||||
u4Byte prv_traffic_idx; // edca turbo
|
||||
#endif
|
||||
|
||||
|
|
|
@ -28,19 +28,10 @@
|
|||
//================================================================================
|
||||
// Interface to manipulate LED objects.
|
||||
//================================================================================
|
||||
#ifdef CONFIG_USB_HCI
|
||||
void rtl8188eu_InitSwLeds(PADAPTER padapter);
|
||||
void rtl8188eu_DeInitSwLeds(PADAPTER padapter);
|
||||
#endif
|
||||
#ifdef CONFIG_PCI_HCI
|
||||
void rtl8188ee_gen_RefreshLedState(PADAPTER Adapter);
|
||||
void rtl8188ee_InitSwLeds(PADAPTER padapter);
|
||||
void rtl8188ee_DeInitSwLeds(PADAPTER padapter);
|
||||
#endif
|
||||
#ifdef CONFIG_SDIO_HCI
|
||||
void rtl8188es_InitSwLeds(PADAPTER padapter);
|
||||
void rtl8188es_DeInitSwLeds(PADAPTER padapter);
|
||||
#endif
|
||||
void SwLedOn(_adapter *padapter, PLED_871x pLed);
|
||||
void SwLedOff(_adapter *padapter, PLED_871x pLed);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -290,14 +290,14 @@ extern void rtl871x_cedbg(const char *fmt, ...);
|
|||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_write_reg(struct file *file, const char *buffer,
|
||||
int proc_set_write_reg(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
int proc_get_read_reg(char *page, char **start,
|
||||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_read_reg(struct file *file, const char *buffer,
|
||||
int proc_set_read_reg(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
|
||||
|
@ -401,7 +401,7 @@ extern void rtl871x_cedbg(const char *fmt, ...);
|
|||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_rx_signal(struct file *file, const char *buffer,
|
||||
int proc_set_rx_signal(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
#ifdef CONFIG_80211N_HT
|
||||
|
||||
|
@ -409,28 +409,28 @@ extern void rtl871x_cedbg(const char *fmt, ...);
|
|||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_ht_enable(struct file *file, const char *buffer,
|
||||
int proc_set_ht_enable(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
int proc_get_cbw40_enable(char *page, char **start,
|
||||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_cbw40_enable(struct file *file, const char *buffer,
|
||||
int proc_set_cbw40_enable(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
int proc_get_ampdu_enable(char *page, char **start,
|
||||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_ampdu_enable(struct file *file, const char *buffer,
|
||||
int proc_set_ampdu_enable(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
int proc_get_rx_stbc(char *page, char **start,
|
||||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_rx_stbc(struct file *file, const char *buffer,
|
||||
int proc_set_rx_stbc(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
#endif //CONFIG_80211N_HT
|
||||
|
||||
|
@ -442,7 +442,7 @@ extern void rtl871x_cedbg(const char *fmt, ...);
|
|||
off_t offset, int count,
|
||||
int *eof, void *data);
|
||||
|
||||
int proc_set_rssi_disp(struct file *file, const char *buffer,
|
||||
int proc_set_rssi_disp(struct file *file, const char __user *buffer,
|
||||
unsigned long count, void *data);
|
||||
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
|
|
|
@ -577,6 +577,14 @@ extern void hostapd_mode_unload(_adapter *padapter);
|
|||
#endif
|
||||
|
||||
|
||||
extern unsigned char WPA_TKIP_CIPHER[4];
|
||||
extern unsigned char RSN_TKIP_CIPHER[4];
|
||||
|
||||
extern unsigned char REALTEK_96B_IE[];
|
||||
|
||||
extern unsigned char MCS_rate_2R[16];
|
||||
extern unsigned char MCS_rate_1R[16];
|
||||
|
||||
extern void rtw_joinbss_event_prehandle(_adapter *adapter, u8 *pbuf);
|
||||
extern void rtw_survey_event_callback(_adapter *adapter, u8 *pbuf);
|
||||
extern void rtw_surveydone_event_callback(_adapter *adapter, u8 *pbuf);
|
||||
|
@ -585,6 +593,9 @@ extern void rtw_stassoc_event_callback(_adapter *adapter, u8 *pbuf);
|
|||
extern void rtw_stadel_event_callback(_adapter *adapter, u8 *pbuf);
|
||||
extern void rtw_atimdone_event_callback(_adapter *adapter, u8 *pbuf);
|
||||
extern void rtw_cpwm_event_callback(_adapter *adapter, u8 *pbuf);
|
||||
void indicate_wx_scan_complete_event(_adapter *padapter);
|
||||
void rtw_indicate_wx_assoc_event(_adapter *padapter);
|
||||
void rtw_indicate_wx_disassoc_event(_adapter *padapter);
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
extern thread_return event_thread(void *context);
|
||||
|
|
|
@ -204,7 +204,7 @@ NDIS_STATUS oid_rt_pro_trigger_gpio_hdl(struct oid_par_priv *poid_par_priv);
|
|||
|
||||
#ifdef _RTW_MP_IOCTL_C_
|
||||
|
||||
const struct oid_obj_priv oid_rtl_seg_81_80_00[] =
|
||||
static const struct oid_obj_priv oid_rtl_seg_81_80_00[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0x00 OID_RT_PRO_RESET_DUT
|
||||
{1, &oid_rt_pro_set_data_rate_hdl}, //0x01
|
||||
|
@ -241,7 +241,7 @@ const struct oid_obj_priv oid_rtl_seg_81_80_00[] =
|
|||
|
||||
};
|
||||
|
||||
const struct oid_obj_priv oid_rtl_seg_81_80_20[] =
|
||||
static const struct oid_obj_priv oid_rtl_seg_81_80_20[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0x20 OID_RT_PRO_READ_POWER_CONTROL
|
||||
{1, &oid_null_function}, //0x21 OID_RT_PRO_WRITE_EEPROM
|
||||
|
@ -262,7 +262,7 @@ const struct oid_obj_priv oid_rtl_seg_81_80_20[] =
|
|||
|
||||
};
|
||||
|
||||
const struct oid_obj_priv oid_rtl_seg_81_80_40[] =
|
||||
static const struct oid_obj_priv oid_rtl_seg_81_80_40[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0x40
|
||||
{1, &oid_null_function}, //0x41
|
||||
|
@ -272,7 +272,7 @@ const struct oid_obj_priv oid_rtl_seg_81_80_40[] =
|
|||
{1, &oid_null_function} //0x45
|
||||
};
|
||||
|
||||
const struct oid_obj_priv oid_rtl_seg_81_80_80[] =
|
||||
static const struct oid_obj_priv oid_rtl_seg_81_80_80[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0x80 OID_RT_DRIVER_OPTION
|
||||
{1, &oid_null_function}, //0x81 OID_RT_RF_OFF
|
||||
|
@ -280,12 +280,12 @@ const struct oid_obj_priv oid_rtl_seg_81_80_80[] =
|
|||
|
||||
};
|
||||
|
||||
const struct oid_obj_priv oid_rtl_seg_81_85[] =
|
||||
static const struct oid_obj_priv oid_rtl_seg_81_85[] =
|
||||
{
|
||||
{1, &oid_rt_wireless_mode_hdl} //0x00 OID_RT_WIRELESS_MODE
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_81_87[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_81_87[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0x80 OID_RT_PRO8187_WI_POLL
|
||||
{1, &oid_rt_pro_write_bb_reg_hdl}, //0x81
|
||||
|
@ -294,7 +294,7 @@ struct oid_obj_priv oid_rtl_seg_81_87[] =
|
|||
{1, &oid_rt_pro_read_rf_reg_hdl} //0x83
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_00[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_00[] =
|
||||
{
|
||||
{1, &oid_rt_pro8711_join_bss_hdl}, //0x00 //S
|
||||
{1, &oid_rt_pro_read_register_hdl}, //0x01
|
||||
|
@ -330,7 +330,7 @@ struct oid_obj_priv oid_rtl_seg_87_11_00[] =
|
|||
{1, &oid_rt_poll_rx_status_hdl} //0X1F
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_20[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_20[] =
|
||||
{
|
||||
{1, &oid_rt_pro_cfg_debug_message_hdl}, //0x20
|
||||
{1, &oid_rt_pro_set_data_rate_ex_hdl}, //0x21
|
||||
|
@ -340,23 +340,23 @@ struct oid_obj_priv oid_rtl_seg_87_11_20[] =
|
|||
};
|
||||
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_50[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_50[] =
|
||||
{
|
||||
{1, &oid_rt_pro_qry_pwrstate_hdl}, //0x50
|
||||
{1, &oid_rt_pro_set_pwrstate_hdl} //0x51
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_80[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_80[] =
|
||||
{
|
||||
{1, &oid_null_function} //0x80
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_B0[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_B0[] =
|
||||
{
|
||||
{1, &oid_null_function} //0xB0
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_11_F0[] =
|
||||
static struct oid_obj_priv oid_rtl_seg_87_11_F0[] =
|
||||
{
|
||||
{1, &oid_null_function}, //0xF0
|
||||
{1, &oid_null_function}, //0xF1
|
||||
|
@ -377,7 +377,7 @@ struct oid_obj_priv oid_rtl_seg_87_11_F0[] =
|
|||
|
||||
};
|
||||
|
||||
struct oid_obj_priv oid_rtl_seg_87_12_00[]=
|
||||
static struct oid_obj_priv oid_rtl_seg_87_12_00[]=
|
||||
{
|
||||
{1, &oid_rt_pro_encryption_ctrl_hdl}, //0x00 Q&S
|
||||
{1, &oid_rt_pro_add_sta_info_hdl}, //0x01 S
|
||||
|
@ -403,25 +403,6 @@ struct oid_obj_priv oid_rtl_seg_87_12_00[]=
|
|||
{1, &oid_rt_get_power_mode_hdl} //0x15 Q OID_RT_GET_POWER_MODE
|
||||
};
|
||||
|
||||
#else /* _RTL871X_MP_IOCTL_C_ */
|
||||
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_80_00[32];
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_80_20[16];
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_80_40[6];
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_80_80[3];
|
||||
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_85[1];
|
||||
extern struct oid_obj_priv oid_rtl_seg_81_87[5];
|
||||
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_00[32];
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_20[5];
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_50[2];
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_80[1];
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_B0[1];
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_11_F0[16];
|
||||
|
||||
extern struct oid_obj_priv oid_rtl_seg_87_12_00[32];
|
||||
|
||||
#endif /* _RTL871X_MP_IOCTL_C_ */
|
||||
|
||||
struct rwreg_param{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue