ソースを参照

qcacld-3.0: Clear hostap key storage when BSS is stopped

qcacld-2.0 to qcacld-3.0 propagation

Invalidate the keys stored in the hostap context when BSS
stop event is received, so that no old key will be wrongly
issued to firmware when hostapd restarts the BSS with a
different encryption mode.

Change-Id: Ied1fa37cfcff32d3ee87ae26490e59ae59211952
CRs-Fixed: 1046965
wadesong 8 年 前
コミット
6d04e32123
1 ファイル変更3 行追加0 行削除
  1. 3 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 3 - 0
core/hdd/src/wlan_hdd_hostapd.c

@@ -1253,6 +1253,9 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
 			hdd_info("P2PGO is going down now");
 			hdd_issue_stored_joinreq(sta_adapter, pHddCtx);
 		}
+		pHddApCtx->groupKey.keyLength = 0;
+		for (i = 0; i < CSR_MAX_NUM_KEY; i++)
+			pHddApCtx->wepKey[i].keyLength = 0;
 		goto stopbss;
 
 	case eSAP_DFS_CAC_START: