summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SME/src/rrm/sme_rrm.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/CORE/SME/src/rrm/sme_rrm.c b/CORE/SME/src/rrm/sme_rrm.c
index d4b2eaedb6fb..246a2d90eb8f 100644
--- a/CORE/SME/src/rrm/sme_rrm.c
+++ b/CORE/SME/src/rrm/sme_rrm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2014, 2016, 2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2014, 2016, 2018-2019 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -1277,20 +1277,11 @@ eHalStatus sme_RrmProcessNeighborReport(tpAniSirGlobal pMac, void *pMsgBuf)
tpRrmNeighborReportDesc pNeighborReportDesc;
tANI_U8 i = 0;
VOS_STATUS vosStatus = VOS_STATUS_SUCCESS;
- tANI_U32 sessionId;
- /* Get the session id */
- status = csrRoamGetSessionIdFromBSSID(pMac, (tCsrBssid *)pNeighborRpt->bssId,
- &sessionId);
- if (HAL_STATUS_SUCCESS(status)) {
-#ifdef FEATURE_WLAN_ESE
- /* Clear the cache for ESE. */
- if (csrNeighborRoamIsESEAssoc(pMac, sessionId)) {
- rrmLLPurgeNeighborCache(pMac,
- &pMac->rrm.rrmSmeContext.neighborReportCache);
- }
-#endif
- }
+ /* Purge the cache on reception of unsolicited neighbor report */
+ if (!pMac->rrm.rrmSmeContext.neighborReqControlInfo.isNeighborRspPending)
+ rrmLLPurgeNeighborCache(pMac,
+ &pMac->rrm.rrmSmeContext.neighborReportCache);
for (i = 0; i < pNeighborRpt->numNeighborReports; i++)
{