mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Change union recv_frame to struct
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
89efde68f8
commit
7fd86158bf
11 changed files with 377 additions and 381 deletions
|
@ -409,10 +409,10 @@ void free_mlme_ext_priv(struct mlme_ext_priv *pmlmeext)
|
|||
}
|
||||
}
|
||||
|
||||
static void _mgt_dispatcher(struct adapter *padapter, struct mlme_handler *ptable, union recv_frame *precv_frame)
|
||||
static void _mgt_dispatcher(struct adapter *padapter, struct mlme_handler *ptable, struct recv_frame *precv_frame)
|
||||
{
|
||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
|
||||
if (ptable->func) {
|
||||
/* receive the frames that ra(a1) is my address or ra(a1) is bc address. */
|
||||
|
@ -423,7 +423,7 @@ static void _mgt_dispatcher(struct adapter *padapter, struct mlme_handler *ptabl
|
|||
}
|
||||
}
|
||||
|
||||
void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
int index;
|
||||
struct mlme_handler *ptable;
|
||||
|
@ -431,7 +431,7 @@ void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
#endif /* CONFIG_88EU_AP_MODE */
|
||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(pframe));
|
||||
|
||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_,
|
||||
|
@ -460,13 +460,13 @@ void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
if (psta != NULL) {
|
||||
if (GetRetry(pframe)) {
|
||||
if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) {
|
||||
if (precv_frame->attrib.seq_num == psta->RxMgmtFrameSeqNum) {
|
||||
/* drop the duplicate management frame */
|
||||
DBG_88E("Drop duplicate management frame with seq_num=%d.\n", precv_frame->u.hdr.attrib.seq_num);
|
||||
DBG_88E("Drop duplicate management frame with seq_num=%d.\n", precv_frame->attrib.seq_num);
|
||||
return;
|
||||
}
|
||||
}
|
||||
psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num;
|
||||
psta->RxMgmtFrameSeqNum = precv_frame->attrib.seq_num;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_88EU_AP_MODE
|
||||
|
@ -526,7 +526,7 @@ Following are the callback functions for each subtype of the management frames
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnProbeReq(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ielen;
|
||||
unsigned char *p;
|
||||
|
@ -534,8 +534,8 @@ unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct wlan_bssid_ex *cur = &(pmlmeinfo->network);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint len = precv_frame->len;
|
||||
u8 is_valid_p2p_probereq = false;
|
||||
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
|
@ -604,12 +604,12 @@ _issue_probersp:
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnProbeRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnProbeRsp(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
|
@ -657,7 +657,7 @@ unsigned int OnProbeRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnBeacon(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnBeacon(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
int cam_idx;
|
||||
struct sta_info *psta;
|
||||
|
@ -665,8 +665,8 @@ unsigned int OnBeacon(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint len = precv_frame->len;
|
||||
struct wlan_bssid_ex *pbss;
|
||||
int ret = _SUCCESS;
|
||||
|
||||
|
@ -747,7 +747,7 @@ _END_ONBEACON_:
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_88EU_AP_MODE
|
||||
unsigned int auth_mode, ie_len;
|
||||
|
@ -761,8 +761,8 @@ unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint len = precv_frame->len;
|
||||
|
||||
if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
|
||||
return _FAIL;
|
||||
|
@ -920,15 +920,15 @@ auth_fail:
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
unsigned int OnAuthClient(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAuthClient(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int seq, len, status, offset;
|
||||
unsigned char *p;
|
||||
unsigned int go2asoc = 0;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint pkt_len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint pkt_len = precv_frame->len;
|
||||
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
|
@ -995,7 +995,7 @@ authclnt_fail:
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAssocReq(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_88EU_AP_MODE
|
||||
u16 capab_info;
|
||||
|
@ -1014,8 +1014,8 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
struct wlan_bssid_ex *cur = &(pmlmeinfo->network);
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint pkt_len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint pkt_len = precv_frame->len;
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
|
||||
u8 p2p_status_code = P2P_STATUS_SUCCESS;
|
||||
|
@ -1456,7 +1456,7 @@ OnAssocReqFail:
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAssocRsp(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
uint i;
|
||||
int res;
|
||||
|
@ -1466,8 +1466,8 @@ unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
/* struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network); */
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint pkt_len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint pkt_len = precv_frame->len;
|
||||
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
|
@ -1546,13 +1546,13 @@ report_assoc_result:
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnDeAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned short reason;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
|
||||
#endif /* CONFIG_88EU_P2P */
|
||||
|
@ -1626,13 +1626,13 @@ unsigned int OnDeAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
u16 reason;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
|
||||
#endif /* CONFIG_88EU_P2P */
|
||||
|
@ -1688,18 +1688,18 @@ unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAtim(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
DBG_88E("%s\n", __func__);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int on_action_spct(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
struct sta_info *psta = NULL;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u8 *frame_body = (u8 *)(pframe + sizeof(struct rtw_ieee80211_hdr_3addr));
|
||||
u8 category;
|
||||
u8 action;
|
||||
|
@ -1732,17 +1732,17 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int OnAction_qos(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_qos(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_dls(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_dls(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
u8 *addr;
|
||||
struct sta_info *psta = NULL;
|
||||
|
@ -1752,7 +1752,7 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra
|
|||
unsigned short tid, status, reason_code = 0;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
/* check RA matches or not */
|
||||
if (memcmp(myid(&(padapter->eeprompriv)), GetAddr1Ptr(pframe), ETH_ALEN))/* for if1, sta/ap mode */
|
||||
|
@ -3829,13 +3829,13 @@ exit:
|
|||
|
||||
#endif /* CONFIG_88EU_P2P */
|
||||
|
||||
static s32 rtw_action_public_decache(union recv_frame *recv_frame, s32 token)
|
||||
static s32 rtw_action_public_decache(struct recv_frame *recv_frame, s32 token)
|
||||
{
|
||||
struct adapter *adapter = recv_frame->u.hdr.adapter;
|
||||
struct adapter *adapter = recv_frame->adapter;
|
||||
struct mlme_ext_priv *mlmeext = &(adapter->mlmeextpriv);
|
||||
u8 *frame = recv_frame->u.hdr.rx_data;
|
||||
u16 seq_ctrl = ((recv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
|
||||
(recv_frame->u.hdr.attrib.frag_num & 0xf);
|
||||
u8 *frame = recv_frame->rx_data;
|
||||
u16 seq_ctrl = ((recv_frame->attrib.seq_num&0xffff) << 4) |
|
||||
(recv_frame->attrib.frag_num & 0xf);
|
||||
|
||||
if (GetRetry(frame)) {
|
||||
if (token >= 0) {
|
||||
|
@ -3861,14 +3861,14 @@ static s32 rtw_action_public_decache(union recv_frame *recv_frame, s32 token)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
||||
static unsigned int on_action_public_p2p(struct recv_frame *precv_frame)
|
||||
{
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u8 *frame_body;
|
||||
u8 dialogToken = 0;
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
struct adapter *padapter = precv_frame->u.hdr.adapter;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
struct adapter *padapter = precv_frame->adapter;
|
||||
uint len = precv_frame->len;
|
||||
u8 *p2p_ie;
|
||||
u32 p2p_ielen;
|
||||
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
|
||||
|
@ -4151,10 +4151,10 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static unsigned int on_action_public_vendor(union recv_frame *precv_frame)
|
||||
static unsigned int on_action_public_vendor(struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
|
||||
if (!memcmp(frame_body + 2, P2P_OUI, 4)) {
|
||||
|
@ -4164,10 +4164,10 @@ static unsigned int on_action_public_vendor(union recv_frame *precv_frame)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static unsigned int on_action_public_default(union recv_frame *precv_frame, u8 action)
|
||||
static unsigned int on_action_public_default(struct recv_frame *precv_frame, u8 action)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
u8 token;
|
||||
|
||||
|
@ -4182,10 +4182,10 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int on_action_public(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int on_action_public(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
u8 category, action;
|
||||
|
||||
|
@ -4211,23 +4211,23 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int OnAction_ht(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_ht(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_wmm(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_wmm(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_p2p(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_p2p(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_88EU_P2P
|
||||
u8 *frame_body;
|
||||
u8 category, OUI_Subtype;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
uint len = precv_frame->len;
|
||||
struct wifidirect_info *pwdinfo = &(padapter->wdinfo);
|
||||
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
@ -4265,13 +4265,13 @@ unsigned int OnAction_p2p(struct adapter *padapter, union recv_frame *precv_fram
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
int i;
|
||||
unsigned char category;
|
||||
struct action_handler *ptable;
|
||||
unsigned char *frame_body;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
|
||||
frame_body = (unsigned char *)(pframe + sizeof(struct rtw_ieee80211_hdr_3addr));
|
||||
|
||||
|
@ -4285,7 +4285,7 @@ unsigned int OnAction(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int DoReserved(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int DoReserved(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -6491,14 +6491,14 @@ void site_survey(struct adapter *padapter)
|
|||
}
|
||||
|
||||
/* collect bss info from Beacon and Probe request/response frames. */
|
||||
u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, struct wlan_bssid_ex *bssid)
|
||||
u8 collect_bss_info(struct adapter *padapter, struct recv_frame *precv_frame, struct wlan_bssid_ex *bssid)
|
||||
{
|
||||
int i;
|
||||
u32 len;
|
||||
u8 *p;
|
||||
u16 val16, subtype;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
u32 packet_len = precv_frame->u.hdr.len;
|
||||
u8 *pframe = precv_frame->rx_data;
|
||||
u32 packet_len = precv_frame->len;
|
||||
u8 ie_offset;
|
||||
struct registry_priv *pregistrypriv = &padapter->registrypriv;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -6538,9 +6538,9 @@ u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, str
|
|||
memcpy(bssid->IEs, (pframe + sizeof(struct rtw_ieee80211_hdr_3addr)), bssid->IELength);
|
||||
|
||||
/* get the signal strength */
|
||||
bssid->Rssi = precv_frame->u.hdr.attrib.phy_info.recvpower; /* in dBM.raw data */
|
||||
bssid->PhyInfo.SignalQuality = precv_frame->u.hdr.attrib.phy_info.SignalQuality;/* in percentage */
|
||||
bssid->PhyInfo.SignalStrength = precv_frame->u.hdr.attrib.phy_info.SignalStrength;/* in percentage */
|
||||
bssid->Rssi = precv_frame->attrib.phy_info.recvpower; /* in dBM.raw data */
|
||||
bssid->PhyInfo.SignalQuality = precv_frame->attrib.phy_info.SignalQuality;/* in percentage */
|
||||
bssid->PhyInfo.SignalStrength = precv_frame->attrib.phy_info.SignalStrength;/* in percentage */
|
||||
rtw_hal_get_def_var(padapter, HAL_DEF_CURRENT_ANTENNA, &bssid->PhyInfo.Optimum_antenna);
|
||||
|
||||
/* checking SSID */
|
||||
|
@ -6986,7 +6986,7 @@ Following are the functions to report events
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
void report_survey_event(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
void report_survey_event(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -6995,8 +6995,8 @@ void report_survey_event(struct adapter *padapter, union recv_frame *precv_frame
|
|||
struct C2HEvent_Header *pc2h_evt_hdr;
|
||||
struct mlme_ext_priv *pmlmeext;
|
||||
struct cmd_priv *pcmdpriv;
|
||||
/* u8 *pframe = precv_frame->u.hdr.rx_data; */
|
||||
/* uint len = precv_frame->u.hdr.len; */
|
||||
/* u8 *pframe = precv_frame->rx_data; */
|
||||
/* uint len = precv_frame->len; */
|
||||
|
||||
if (!padapter)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue