From 5f47f1e7a79a0fe74fbd7e331e11e986b2061b81 Mon Sep 17 00:00:00 2001 From: Archana Ramachandran Date: Thu, 15 Dec 2016 11:57:43 -0800 Subject: qcacld-3.0: Remove BSSID from scan cache for link loss due to disaasoc Upon disconnection from the peer p2p GO/SAP, the BSSID is removed from the scan cache only when the disconnection is due to DEAUTH received from peer. We need to do the same for disconnection due to disassoc as well. Otherwise, the stale BSSID might be forwarded to supplicant if the new scan for some reason did not fetch the BSSID in the scan result. Change-Id: I54ca20b31491d652fbde2046bf634f948ce2566b CRs-Fixed: 1102008 --- core/hdd/src/wlan_hdd_assoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index af913392396c..9adf7d3fc850 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1635,7 +1635,8 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter, /* clear scan cache for Link Lost */ if (pRoamInfo && !pRoamInfo->reasonCode && - (eCSR_ROAM_RESULT_DEAUTH_IND == roamResult)) { + (eCSR_ROAM_RESULT_DEAUTH_IND == roamResult || + eCSR_ROAM_RESULT_DISASSOC_IND == roamResult)) { wlan_hdd_cfg80211_update_bss_list(pAdapter, pHddStaCtx->conn_info.bssId.bytes); sme_remove_bssid_from_scan_list(pHddCtx->hHal, -- cgit v1.2.3