From ed35b7f7e98268bc955ed3912eace387635d9add Mon Sep 17 00:00:00 2001 From: Vinay Krishna Eranna Date: Tue, 11 Mar 2014 11:51:00 -0700 Subject: 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 --- CORE/SME/src/sme_common/sme_Api.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- cgit v1.2.3