WLAN:Obtain WPA version from the supplicant connect params
Obtain WPA version from the 'cfg80211_crypto_settings'
structure which is available as part of connect params and
not to look into the IE's to identify the WPA version.
CRs-Fixed: 506135
Change-Id: I8d88065cd1bf8d4ea48bc5e0899c0d12c54c49c9
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 438ea27..fbea7ed 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5447,13 +5447,7 @@
if (req->crypto.wpa_versions)
{
- if ( (NL80211_WPA_VERSION_1 == req->crypto.wpa_versions)
- && ( (req->ie_len)
- && (hdd_isWPAIEPresent(req->ie, req->ie_len) ) ) )
- // Make sure that it is including a WPA IE.
- /* Currently NL is putting WPA version 1 even for open,
- * since p2p ie is also put in same buffer.
- * */
+ if (NL80211_WPA_VERSION_1 == req->crypto.wpa_versions)
{
pWextState->wpaVersion = IW_AUTH_WPA_VERSION_WPA;
}