WLAN:Drop the deauth frame when LIM is already processing one.
In eLIM_SME_WT_DEAUTH_STATE, deauth frames will be dropped
at the limProcessDeauthFrame() and print the debug message at
every 15th deauth frame.
Change-Id: I3171ef038ddc1d3606cb6a6073436d5c493b8d41
CRs-Fixed: 482708
diff --git a/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c b/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c
index 575d3ca..429698d 100644
--- a/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessDeauthFrame.c
@@ -73,16 +73,19 @@
if ((eLIM_STA_ROLE == psessionEntry->limSystemRole) && (eLIM_SME_WT_DEAUTH_STATE == psessionEntry->limSmeState))
{
+ /*Every 15th deauth frame will be logged in kmsg*/
if(!(pMac->lim.deauthMsgCnt & 0xF))
{
PELOGE(limLog(pMac, LOGE,
- FL("received Deauth frame in DEAUTH_WT_STATE(already processing previously received DEAUTH frame).. Dropping this.. Deauth Failed %d \n "),++pMac->lim.deauthMsgCnt);)
- return;
+ FL("received Deauth frame in DEAUTH_WT_STATE"
+ "(already processing previously received DEAUTH frame).."
+ "Dropping this.. Deauth Failed %d \n "),++pMac->lim.deauthMsgCnt);)
}
else
{
pMac->lim.deauthMsgCnt++;
}
+ return;
}
if (limIsGroupAddr(pHdr->sa))