diff options
| author | Edhar, Mahesh Kumar <c_medhar@qti.qualcomm.com> | 2015-07-13 11:33:17 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-07-14 18:16:15 +0530 |
| commit | a2af6644df46db679fbe66080bae6006d23998de (patch) | |
| tree | 300053b3102abf7727e4314b53202e024e79b22f | |
| parent | 0e526f4f6380a2a3e1bbc408aaf57528fbf76497 (diff) | |
qcacld-2.0: Change to drop received beacon in deferred state
Currently while sending command to firmware and waiting for
response we will set gLimProcessDefdMsgs to false, during
this processing of lim request message will be deferred until
we get the response.
In noisy environment we might run out of message wrappers on
receiving lot of beacon frames in deferred state.
Change to drop received beacon during deferred state.
Change-Id: I709574d3a97f89a21500c3fbbb166bb257d26c7b
CRs-Fixed: 870159
| -rw-r--r-- | CORE/SYS/legacy/src/system/src/sysEntryFunc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CORE/SYS/legacy/src/system/src/sysEntryFunc.c b/CORE/SYS/legacy/src/system/src/sysEntryFunc.c index cf893161bb90..234197e97d00 100644 --- a/CORE/SYS/legacy/src/system/src/sysEntryFunc.c +++ b/CORE/SYS/legacy/src/system/src/sysEntryFunc.c @@ -155,6 +155,20 @@ sysBbtProcessMessageCore(tpAniSirGlobal pMac, tpSirMsgQ pMsg, tANI_U32 type, goto fail; } } + + /* + * Drop beacon frames in deferred state to avoid VOSS run out of + * message wrappers. + */ + if ((subType == SIR_MAC_MGMT_BEACON) && + (!limIsSystemInScanState(pMac)) && + (true != GET_LIM_PROCESS_DEFD_MESGS(pMac)) && + !pMac->lim.gLimSystemInScanLearnMode) { + VOS_TRACE(VOS_MODULE_ID_SYS, VOS_TRACE_LEVEL_INFO_HIGH, + FL("dropping received beacon in deffered state")); + goto fail; + } + if (((subType == SIR_MAC_MGMT_DEAUTH) || (subType == SIR_MAC_MGMT_DISASSOC)) && (framecount >= MAX_DEAUTH_ALLOWED)) |
