mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +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
|
@ -32,7 +32,7 @@
|
|||
#include <rtl8723a_hal.h>
|
||||
#endif
|
||||
|
||||
struct mlme_handler mlme_sta_tbl[]={
|
||||
static struct mlme_handler mlme_sta_tbl[]={
|
||||
{WIFI_ASSOCREQ, "OnAssocReq", &OnAssocReq},
|
||||
{WIFI_ASSOCRSP, "OnAssocRsp", &OnAssocRsp},
|
||||
{WIFI_REASSOCREQ, "OnReAssocReq", &OnAssocReq},
|
||||
|
@ -76,7 +76,7 @@ struct mlme_handler mlme_ap_tbl[]={
|
|||
};
|
||||
#endif
|
||||
|
||||
struct action_handler OnAction_tbl[]={
|
||||
static struct action_handler OnAction_tbl[]={
|
||||
{RTW_WLAN_CATEGORY_SPECTRUM_MGMT, "ACTION_SPECTRUM_MGMT", on_action_spct},
|
||||
{RTW_WLAN_CATEGORY_QOS, "ACTION_QOS", &OnAction_qos},
|
||||
{RTW_WLAN_CATEGORY_DLS, "ACTION_DLS", &OnAction_dls},
|
||||
|
@ -91,7 +91,7 @@ struct action_handler OnAction_tbl[]={
|
|||
};
|
||||
|
||||
|
||||
u8 null_addr[ETH_ALEN]= {0,0,0,0,0,0};
|
||||
static u8 null_addr[ETH_ALEN]= {0,0,0,0,0,0};
|
||||
|
||||
/**************************************************
|
||||
OUI definitions for the vendor specific IE
|
||||
|
@ -113,12 +113,7 @@ extern unsigned char REALTEK_96B_IE[];
|
|||
/********************************************************
|
||||
MCS rate definitions
|
||||
*********************************************************/
|
||||
#ifdef CONFIG_DISABLE_MCS13TO15
|
||||
unsigned char MCS_rate_2R_MCS13TO15_OFF[16] = {0xff, 0x1f, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
unsigned char MCS_rate_2R[16] = {0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
#else //CONFIG_DISABLE_MCS13TO15
|
||||
unsigned char MCS_rate_2R[16] = {0xff, 0xff, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
#endif //CONFIG_DISABLE_MCS13TO15
|
||||
unsigned char MCS_rate_1R[16] = {0xff, 0x00, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
|
||||
/********************************************************
|
||||
|
@ -759,7 +754,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
u32 p2p_listen_state_process(_adapter *padapter, unsigned char *da)
|
||||
static u32 p2p_listen_state_process(_adapter *padapter, unsigned char *da)
|
||||
{
|
||||
bool response = _TRUE;
|
||||
|
||||
|
@ -2437,7 +2432,7 @@ unsigned int OnAtim(_adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int on_action_spct_ch_switch (_adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
static unsigned int on_action_spct_ch_switch (_adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
struct mlme_ext_priv *mlmeext = &padapter->mlmeextpriv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue