summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Krishna Eranna <c_veran@qti.qualcomm.com>2014-03-11 11:51:00 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-19 13:16:46 -0700
commited35b7f7e98268bc955ed3912eace387635d9add (patch)
tree16ef67104917692e31af14e70039474a6c3d4c69
parent3e2a10b2e204cf51884314e07d6d11c828c035d3 (diff)
wlan: Flush scan results on PNO indication event.
Flush scan results during PNO indication, so as to avoid indication/updation of stale entries to above layers, which may not have aged out during APPS collapse. Change-Id: I8044a6c59e15e22df3ff8c75adae6a0fdd701bc8 CRs-Fixed: 585517
-rw-r--r--CORE/SME/src/sme_common/sme_Api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c
index fbc1db7e58bc..35f86015075e 100644
--- a/CORE/SME/src/sme_common/sme_Api.c
+++ b/CORE/SME/src/sme_common/sme_Api.c
@@ -7461,6 +7461,11 @@ eHalStatus sme_PreferredNetworkFoundInd (tHalHandle hHal, void* pMsg)
smsLog(pMac, LOG2, "%s:SSID=%s frame length %d",
__func__, dumpSsId, pPrefNetworkFoundInd->frameLength);
+ /* Flush scan results, So as to avoid indication/updation of
+ * stale entries, which may not have aged out during APPS collapse
+ */
+ sme_ScanFlushResult(hHal,0);
+
//Save the frame to scan result
if (pPrefNetworkFoundInd->mesgLen > sizeof(tSirPrefNetworkFoundInd))
{