Ver código fonte

qcacld-3.0: Remove BSS from scan cache after disconnect

P2P connection is failed because host driver is updating
stale BSS entry of P2P go to NL.

Remove BSS entry from scan cache irrespective of reason
code.

Change-Id: I99eb1fd953037bbbd9c1af1147d3656f6ca246c3
CRs-Fixed: 1110752
Sandeep Puligilla 8 anos atrás
pai
commit
f0b3058d6a
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      core/hdd/src/wlan_hdd_assoc.c

+ 2 - 1
core/hdd/src/wlan_hdd_assoc.c

@@ -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);