summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchana Ramachandran <archanar@codeaurora.org>2016-12-15 11:57:43 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-20 13:41:02 -0800
commit5f47f1e7a79a0fe74fbd7e331e11e986b2061b81 (patch)
tree66935b7b8d22594fefffb9fc9a23fad1dc546105
parent0aeae3bde6d220e1dd59ed8c3b68987f7a4ac51c (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_assoc.c3
1 files changed, 2 insertions, 1 deletions
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,