wlan: reset encryption type when start bss
While restarting SAP to different encryption type without
reloading the driver, e.g from WPA->OPEN.
The sapConfig will carry previous configuration and flag
the adapter's ucEncryptType with incorrect encryption type.
Reset the encryption type while starting the bss.
Change-Id: I064ad1e86758fae563d38957712394fece3f1967
CRs-Fixed: 680482.
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 370b1c3..b79552f 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -3358,6 +3358,11 @@
}
pConfig->fwdWPSPBCProbeReq = 1; // Forward WPS PBC probe request frame up
+ pConfig->RSNEncryptType = eCSR_ENCRYPT_TYPE_NONE;
+ pConfig->mcRSNEncryptType = eCSR_ENCRYPT_TYPE_NONE;
+ (WLAN_HDD_GET_AP_CTX_PTR(pHostapdAdapter))->ucEncryptType =
+ eCSR_ENCRYPT_TYPE_NONE;
+
pConfig->RSNWPAReqIELength = 0;
pConfig->pRSNWPAReqIE = NULL;
pIe = wlan_hdd_cfg80211_get_ie_ptr(pBeacon->tail, pBeacon->tail_len,