소스 검색

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 년 전
부모
커밋
f0b3058d6a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);