mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove some Sparse problems
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
065126d8ce
commit
a0c85b341e
13 changed files with 246 additions and 296 deletions
|
@ -115,8 +115,6 @@ unsigned char WMM_PARA_OUI[] = {0x00, 0x50, 0xf2, 0x02, 0x01, 0x01};
|
|||
unsigned char WPA_TKIP_CIPHER[4] = {0x00, 0x50, 0xf2, 0x02};
|
||||
unsigned char RSN_TKIP_CIPHER[4] = {0x00, 0x0f, 0xac, 0x02};
|
||||
|
||||
extern unsigned char REALTEK_96B_IE[];
|
||||
|
||||
/********************************************************
|
||||
MCS rate definitions
|
||||
*********************************************************/
|
||||
|
@ -3980,39 +3978,37 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
|
|||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
u8 action = P2P_PUB_ACTION_ACTION;
|
||||
u32 p2poui = cpu_to_be32(P2POUI);
|
||||
u8 oui_subtype = P2P_INVIT_REQ;
|
||||
u8 p2pie[ 255 ] = { 0x00 };
|
||||
u8 p2pielen = 0, i;
|
||||
u8 dialogToken = 3;
|
||||
u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh = 0;
|
||||
u16 len_channellist_attr = 0;
|
||||
u8 action = P2P_PUB_ACTION_ACTION;
|
||||
u32 p2poui = cpu_to_be32(P2POUI);
|
||||
u8 oui_subtype = P2P_INVIT_REQ;
|
||||
u8 p2pie[ 255 ] = { 0x00 };
|
||||
u8 p2pielen = 0, i;
|
||||
u8 dialogToken = 3;
|
||||
u8 channel_cnt_24g = 0, channel_cnt_5gl = 0, channel_cnt_5gh = 0;
|
||||
u16 len_channellist_attr = 0;
|
||||
#ifdef CONFIG_WFD
|
||||
u32 wfdielen = 0;
|
||||
u32 wfdielen = 0;
|
||||
#endif //CONFIG_WFD
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
_adapter *pbuddy_adapter = padapter->pbuddy_adapter;
|
||||
_adapter *pbuddy_adapter = padapter->pbuddy_adapter;
|
||||
struct wifidirect_info *pbuddy_wdinfo = &pbuddy_adapter->wdinfo;
|
||||
struct mlme_priv *pbuddy_mlmepriv = &pbuddy_adapter->mlmepriv;
|
||||
struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
|
||||
#endif
|
||||
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
unsigned char *pframe;
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
unsigned char *pframe;
|
||||
struct rtw_ieee80211_hdr *pwlanhdr;
|
||||
unsigned short *fctrl;
|
||||
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
|
||||
unsigned short *fctrl;
|
||||
struct xmit_priv *pxmitpriv = &(padapter->xmitpriv);
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct wifidirect_info *pwdinfo = &( padapter->wdinfo);
|
||||
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
|
|
|
@ -869,7 +869,7 @@ _func_enter_;
|
|||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
|
||||
_irqlevel_changed_(&oldirql, LOWER);
|
||||
rtw_hal_set_hwreg(Adapter, HW_VAR_TRIGGER_GPIO_0, 0);
|
||||
rtw_hal_set_hwreg(Adapter, HW_VAR_TRIGGER_GPIO_0, NULL);
|
||||
_irqlevel_changed_(&oldirql, RAISE);
|
||||
|
||||
_func_exit_;
|
||||
|
|
|
@ -23,24 +23,25 @@
|
|||
#include <osdep_service.h>
|
||||
#include <drv_types.h>
|
||||
#include <wifi.h>
|
||||
#include <rtw_mlme_ext.h>
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
#include <linux/inetdevice.h>
|
||||
#endif
|
||||
|
||||
unsigned char ARTHEROS_OUI1[] = {0x00, 0x03, 0x7f};
|
||||
unsigned char ARTHEROS_OUI2[] = {0x00, 0x13, 0x74};
|
||||
static unsigned char ARTHEROS_OUI1[] = {0x00, 0x03, 0x7f};
|
||||
static unsigned char ARTHEROS_OUI2[] = {0x00, 0x13, 0x74};
|
||||
|
||||
unsigned char BROADCOM_OUI1[] = {0x00, 0x10, 0x18};
|
||||
unsigned char BROADCOM_OUI2[] = {0x00, 0x0a, 0xf7};
|
||||
unsigned char BROADCOM_OUI3[] = {0x00, 0x05, 0xb5};
|
||||
static unsigned char BROADCOM_OUI1[] = {0x00, 0x10, 0x18};
|
||||
static unsigned char BROADCOM_OUI2[] = {0x00, 0x0a, 0xf7};
|
||||
static unsigned char BROADCOM_OUI3[] = {0x00, 0x05, 0xb5};
|
||||
|
||||
unsigned char CISCO_OUI[] = {0x00, 0x40, 0x96};
|
||||
unsigned char MARVELL_OUI[] = {0x00, 0x50, 0x43};
|
||||
unsigned char RALINK_OUI[] = {0x00, 0x0c, 0x43};
|
||||
unsigned char REALTEK_OUI[] = {0x00, 0xe0, 0x4c};
|
||||
unsigned char AIRGOCAP_OUI[] = {0x00, 0x0a, 0xf5};
|
||||
unsigned char EPIGRAM_OUI[] = {0x00, 0x90, 0x4c};
|
||||
static unsigned char CISCO_OUI[] = {0x00, 0x40, 0x96};
|
||||
static unsigned char MARVELL_OUI[] = {0x00, 0x50, 0x43};
|
||||
static unsigned char RALINK_OUI[] = {0x00, 0x0c, 0x43};
|
||||
static unsigned char REALTEK_OUI[] = {0x00, 0xe0, 0x4c};
|
||||
static unsigned char AIRGOCAP_OUI[] = {0x00, 0x0a, 0xf5};
|
||||
static unsigned char EPIGRAM_OUI[] = {0x00, 0x90, 0x4c};
|
||||
|
||||
unsigned char REALTEK_96B_IE[] = {0x00, 0xe0, 0x4c, 0x02, 0x01, 0x20};
|
||||
|
||||
|
@ -577,11 +578,10 @@ __inline u8 *get_my_bssid(WLAN_BSSID_EX *pnetwork)
|
|||
|
||||
u16 get_beacon_interval(WLAN_BSSID_EX *bss)
|
||||
{
|
||||
unsigned short val;
|
||||
_rtw_memcpy((unsigned char *)&val, rtw_get_beacon_interval_from_ie(bss->IEs), 2);
|
||||
|
||||
return le16_to_cpu(val);
|
||||
__le16 le_val;
|
||||
|
||||
memcpy(&le_val, rtw_get_beacon_interval_from_ie(bss->IEs), 2);
|
||||
return le16_to_cpu(le_val);
|
||||
}
|
||||
|
||||
int is_client_associated_to_ap(_adapter *padapter)
|
||||
|
@ -664,7 +664,7 @@ void CAM_empty_entry(
|
|||
|
||||
void invalidate_cam_all(_adapter *padapter)
|
||||
{
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, 0);
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, NULL);
|
||||
}
|
||||
#if 0
|
||||
static u32 _ReadCAM(_adapter *padapter ,u32 addr)
|
||||
|
@ -838,7 +838,7 @@ void flush_all_cam_entry(_adapter *padapter)
|
|||
}
|
||||
#else //CONFIG_CONCURRENT_MODE
|
||||
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, 0);
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_CAM_INVALID_ALL, NULL);
|
||||
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue