|
@@ -1717,7 +1717,8 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter,
|
|
|
hdd_debug("roamResult: %d", roamResult);
|
|
|
|
|
|
/* clear scan cache for Link Lost */
|
|
|
- if (pRoamInfo && !pRoamInfo->reasonCode &&
|
|
|
+ if (eCSR_ROAM_RESULT_DEAUTH_IND == roamResult ||
|
|
|
+ eCSR_ROAM_RESULT_DISASSOC_IND == roamResult ||
|
|
|
eCSR_ROAM_LOSTLINK == roamStatus) {
|
|
|
wlan_hdd_cfg80211_update_bss_list(pAdapter,
|
|
|
pHddStaCtx->conn_info.bssId.bytes);
|