Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions core/rtw_mlme_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)

#ifdef CONFIG_AP_MODE
subtype = GetFrameSubType(pframe);
if ((subtype == WIFI_AUTH) ||
(subtype == WIFI_ASSOCREQ) ||
(subtype == WIFI_REASSOCREQ))
if (subtype == WIFI_AUTH)
{
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
Expand All @@ -766,18 +764,16 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
{
ptable->func = &OnAuthClient;
}

// fallthrough
if ((subtype == WIFI_ASSOCREQ) ||
_mgt_dispatcher(padapter, ptable, precv_frame);
}
else if ((subtype == WIFI_ASSOCREQ) ||
(subtype == WIFI_REASSOCREQ))
{
{
_mgt_dispatcher(padapter, ptable, precv_frame);

if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
{
rtw_hostapd_mlme_rx(padapter, precv_frame);
}
}
}
else if (subtype == WIFI_PROBEREQ)
{
Expand Down