summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Gao <wugao@qti.qualcomm.com>2016-07-27 17:52:00 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-08-03 14:02:10 +0530
commitc030acffb7be92ca35b8af3557b54d1d4c7ddbd1 (patch)
tree1041afce4d41116de563252a77c3e514c9ef9c7d
parentda99c448caf509b79d426323a34d36521f20a8b9 (diff)
qcacld-2.0: Clear hostap key storage when BSS is stopped
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
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 15253812bd55..c1c4c33f0ae4 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -1604,6 +1604,9 @@ VOS_STATUS hdd_hostapd_SAPEventCB( tpSap_Event pSapEvent, v_PVOID_t usrDataForCa
FL("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: