From 99f45408a0214963c6e4e5abf6aa767f4aab09ed Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Fri, 7 Aug 2020 14:31:45 +0530 Subject: [PATCH] qcacld-3.0: Fill proper AKM for WAPI In WAPI conenction the check for WAPI authmode is missing. And thus AKM filles in open mode leading to not seinding the WAPI IE in assoc req and thus Assoc reject. Fix by properly handling the WAPI case. Change-Id: Ic7b7b7e5ffce46e30ade20395406287e1b5a5fce CRs-Fixed: 2744415 --- core/sme/src/csr/csr_api_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 40ba63c27a5b..9cf752f8026b 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -2033,7 +2033,7 @@ static void csr_fill_auth_type(enum csr_akm_type *auth_type, return; } - if (QDF_HAS_PARAM(authmodeset, WLAN_CRYPTO_AUTH_SHARED)) { + if (QDF_HAS_PARAM(authmodeset, WLAN_CRYPTO_AUTH_WAPI)) { csr_fill_wapi_auth_type(auth_type, akm); return; }