summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2019-02-15 19:17:12 +0800
committerbings <bings@codeaurora.org>2019-02-27 14:19:03 +0800
commit985bd570ab37743ca7ac5239badb06225db1bbdc (patch)
tree104efd4e30d687a55351fbcc9317481dd9967a3a
parent8f4bc322c473f233b080e1e79995e3646b9c407f (diff)
qcacld-2.0: Disable roaming for SAE
propagation from qcacld-3.0 to qcacld-2.0 SAE is supported only for fresh connection. Hence, disable roaming for SAE. Change-Id: I53a03a3ea2955a7a8e67105f24e01e19a72be72c CRs-Fixed: 2405936
-rw-r--r--CORE/SME/inc/csrApi.h7
-rw-r--r--CORE/SME/src/csr/csrApiRoam.c8
2 files changed, 14 insertions, 1 deletions
diff --git a/CORE/SME/inc/csrApi.h b/CORE/SME/inc/csrApi.h
index 14c1e99a0763..c6a5480fd45c 100644
--- a/CORE/SME/inc/csrApi.h
+++ b/CORE/SME/inc/csrApi.h
@@ -1918,7 +1918,12 @@ typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);
///////////////////////////////////////////Common Roam ends
-
+#ifdef WLAN_FEATURE_SAE
+#define CSR_IS_AUTH_TYPE_SAE(auth_type) \
+ (eCSR_AUTH_TYPE_SAE == auth_type)
+#else
+#define CSR_IS_AUTH_TYPE_SAE(auth_type) (false)
+#endif
/* ---------------------------------------------------------------------------
\fn csrSetChannels
diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c
index 3445c83adc83..71819efc92e6 100644
--- a/CORE/SME/src/csr/csrApiRoam.c
+++ b/CORE/SME/src/csr/csrApiRoam.c
@@ -18437,6 +18437,14 @@ eHalStatus csrRoamOffloadScan(tpAniSirGlobal pMac, tANI_U8 sessionId,
smsLog( pMac, LOGE,"Roam Scan Offload is already started");
return eHAL_STATUS_FAILURE;
}
+
+ /* Roaming is not supported currently for SAE authentication */
+ if (pSession->pCurRoamProfile &&
+ CSR_IS_AUTH_TYPE_SAE(
+ pSession->pCurRoamProfile->AuthType.authType[0])) {
+ smsLog(pMac, LOGE, "Roaming not suppprted for SAE connection");
+ return eHAL_STATUS_SUCCESS;
+ }
/*The Dynamic Config Items Update may happen even if the state is in INIT.
* It is important to ensure that the command is passed down to the FW only
* if the Infra Station is in a connected state.A connected station could also be