From 83165da2e435fc5eee2ffe390bdb90b150dee6db Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Wed, 26 Jun 2019 00:59:51 -0400 Subject: qcacld-2.0: Set SAE auth type for PMKID cached connect request The new supplicant will use NL80211_AUTHTYPE_OPEN_SYSTEM 80211 auth type to connect to pmkid cached AP. Driver needs to populate SAE auth type to roam profile if SAE AKM present. Change-Id: I982816f33468f8499dfbf857c31c025f704a21aa CRs-Fixed: 2476501 --- CORE/HDD/src/wlan_hdd_assoc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c index 1f8b2ec2dff9..5a656616b94b 100644 --- a/CORE/HDD/src/wlan_hdd_assoc.c +++ b/CORE/HDD/src/wlan_hdd_assoc.c @@ -5626,6 +5626,12 @@ int hdd_set_csr_auth_type ( hdd_adapter_t *pAdapter, eCsrAuthType RSNAuthType) hddLog(LOG1, "updated profile authtype as %d", RSNAuthType); } else #endif + if ((RSNAuthType == eCSR_AUTH_TYPE_SAE) && + ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X) + == IW_AUTH_KEY_MGMT_802_1X)) { + /* SAE case */ + pRoamProfile->AuthType.authType[0] = eCSR_AUTH_TYPE_SAE; + } else if ((RSNAuthType == eCSR_AUTH_TYPE_OWE) && ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X) == IW_AUTH_KEY_MGMT_802_1X)) { -- cgit v1.2.3