From 9bcf009a205197d3fcea70b4a85fc19c40f8bd6b Mon Sep 17 00:00:00 2001 From: yeshwanth sriram guntuka Date: Wed, 15 Mar 2017 19:33:04 +0530 Subject: qcacld-3.0: Remove bssid from scan cache for HB failure only Bssid is removed from scan cache as part of disconnect handler if AP/p2p GO sends deauth or disassoc. Fix is to remove bssid from scan cache only for HB failure. Change-Id: I23476858ab63f7c7ba1e82d897a4e37bb192e472 CRs-Fixed: 2017326 --- core/hdd/src/wlan_hdd_assoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index dc1ad717c66b..3b48dded2a56 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1633,8 +1633,8 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter, hdd_debug("roamResult: %d", roamResult); /* clear scan cache for Link Lost */ - if ((eCSR_ROAM_RESULT_DEAUTH_IND == roamResult || - eCSR_ROAM_RESULT_DISASSOC_IND == roamResult)) { + if (pRoamInfo && !pRoamInfo->reasonCode && + eCSR_ROAM_LOSTLINK == roamStatus) { wlan_hdd_cfg80211_update_bss_list(pAdapter, pHddStaCtx->conn_info.bssId.bytes); sme_remove_bssid_from_scan_list(pHddCtx->hHal, -- cgit v1.2.3