summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zhang <paulz@qti.qualcomm.com>2015-12-17 17:11:04 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-12-18 13:58:46 +0530
commit03cb445c8092ff33121b1f9c0fe3f5830b2bfa6a (patch)
tree81de248d40d589f794918b4a917d360ba36d4871
parent71cbddd17b84ea2bcf506ecd0081f27c6b3cd74b (diff)
qcacld: Ignore unexpected frames to smooth rssi
Since it receives the beacon/probe resp whose DS param channel does not match with the RX BD channel, and it can't find the pBssDescr in the list of pMac->lim.gLimCachedScanHashTable[index] at the beginning of new scaning round. It adds this new pBssDescr to the list with wrong rssi value and causes the rssi jumping. To mitigate this issue, drop these unexpected frames reveived before one pBssDescr is added. Change-Id: Iacb31eaef48dfe26d42b6b9254d6a09f909ec65f CRs-Fixed: 953022
-rw-r--r--CORE/MAC/src/pe/lim/limScanResultUtils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index 43187e71d824..94ae6ad0d547 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -842,6 +842,9 @@ limLookupNaddHashEntry(tpAniSirGlobal pMac,
}
}
+ if ((false == found) && dontUpdateAll)
+ return eHAL_STATUS_FAILURE;
+
//for now, only rssi, we can add more if needed
if ((action == LIM_HASH_UPDATE) && dontUpdateAll && rssi && rssi_raw)
{