From bd41baa5875c7e8326fe622577d5c7a432908783 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Fri, 12 Oct 2018 17:46:04 +0530 Subject: [PATCH] qcacld-3.0: Fix FT roaming failure for WEP Auto switch auth mode hdd_set_csr_auth_type sets roam profile auth type on the basis of pHddStaCtx->conn_info.authType. Currently, if supplicant sends pHddStaCtx->conn_info.authType = eCSR_AUTH_TYPE_AUTOSWITCH, driver is not handling this case and by default sets eCSR_AUTH_TYPE_UNKNOWN. When scan results are obtained, driver is not able to match the auth type in csrIsSecurityMatch as its set to UNKNOWN .This leads to connection failure in FT roaming. Fix is to set proper value of pRoamProfile->AuthType in case of pHddStaCtx->conn_info.authType = eCSR_AUTH_TYPE_AUTOSWITCH. Change-Id: I203f71606ee424340b447caecb91aded18c029b0 CRs-Fixed: 2327541 --- core/hdd/src/wlan_hdd_assoc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 9739157d5fcf..3d9315a84d45 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -5448,6 +5448,7 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter, switch (sta_ctx->conn_info.authType) { case eCSR_AUTH_TYPE_OPEN_SYSTEM: + case eCSR_AUTH_TYPE_AUTOSWITCH: #ifdef FEATURE_WLAN_ESE case eCSR_AUTH_TYPE_CCKM_WPA: case eCSR_AUTH_TYPE_CCKM_RSN: