From aa8fa0969a26530efa07e86078320331b3f3e2ef Mon Sep 17 00:00:00 2001 From: "Chandrasekaran, Manishekar" Date: Tue, 11 Mar 2014 04:19:05 +0530 Subject: qcacld: Fix for flushing aged scan entries from SME In the current implementation, the flushing takes into account the state of the interfaces i.e., whether they are connected or not. Due to this,age out is not happening as expected. This fix ensures that the age out logic will kick in if the scan is offloaded Change-Id: If85dd80c15ab3e251bcb22dd3a2ccfb5d6bac209 CRs-Fixed: 627608 --- CORE/SME/src/csr/csrApiScan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c index 50f1e20377c4..69da7bd6c508 100644 --- a/CORE/SME/src/csr/csrApiScan.c +++ b/CORE/SME/src/csr/csrApiScan.c @@ -6503,9 +6503,10 @@ void csrScanResultAgingTimerHandler(void *pv) tANI_BOOLEAN fDisconnected = csrIsAllSessionDisconnected(pMac); //no scan, no aging - if(pMac->scan.fScanEnable && + if (pMac->scan.fScanEnable && (((eANI_BOOLEAN_FALSE == fDisconnected) && pMac->roam.configParam.bgScanInterval) - || (fDisconnected && (pMac->scan.fCancelIdleScan == eANI_BOOLEAN_FALSE))) + || (fDisconnected && (pMac->scan.fCancelIdleScan == eANI_BOOLEAN_FALSE)) + || (pMac->fScanOffload)) ) { tListElem *pEntry, *tmpEntry; -- cgit v1.2.3