summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadma, Santhosh Kumar <skpadma@codeaurora.org>2018-02-13 18:12:03 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-20 02:34:11 -0700
commit1380e6741578c7a2a54a0b9f82c19fc9bbed5473 (patch)
tree48afd71742c8fcdd693acaed06316bac4dd69c91
parent7237ff3ffb7e95fa1322e849fa3091625244b924 (diff)
qcacld-3.0: Disable roaming for OWE
OWE is supported only for fresh connection. Hence, disable roaming for OWE. Change-Id: I234e167c11b21e800fed78218ba198b7a5acba5b CRs-Fixed: 2141423
-rw-r--r--core/sme/inc/csr_api.h7
-rw-r--r--core/sme/src/csr/csr_api_roam.c8
2 files changed, 15 insertions, 0 deletions
diff --git a/core/sme/inc/csr_api.h b/core/sme/inc/csr_api.h
index 4c97923bd612..13743604b23b 100644
--- a/core/sme/inc/csr_api.h
+++ b/core/sme/inc/csr_api.h
@@ -1801,6 +1801,13 @@ typedef QDF_STATUS (*csr_roamSessionCloseCallback)(void *pContext);
(eCSR_AUTH_TYPE_FT_FILS_SHA256 == auth_type) || \
(eCSR_AUTH_TYPE_FT_FILS_SHA384 == auth_type))
+#ifdef WLAN_FEATURE_OWE
+#define CSR_IS_AUTH_TYPE_OWE(auth_type) \
+ (eCSR_AUTH_TYPE_OWE == auth_type)
+#else
+#define CSR_IS_AUTH_TYPE_OWE(auth_type) (false)
+#endif
+
QDF_STATUS csr_set_channels(tHalHandle hHal, tCsrConfigParam *pParam);
QDF_STATUS csr_set_reg_info(tHalHandle hHal, uint8_t *apCntryCode);
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c
index c7c61cf11c00..9720476a7047 100644
--- a/core/sme/src/csr/csr_api_roam.c
+++ b/core/sme/src/csr/csr_api_roam.c
@@ -19686,6 +19686,14 @@ csr_roam_offload_scan(tpAniSirGlobal mac_ctx, uint8_t session_id,
return QDF_STATUS_SUCCESS;
}
+ /* Roaming is not supported currently for OWE akm */
+ if (session->pCurRoamProfile &&
+ CSR_IS_AUTH_TYPE_OWE(
+ session->pCurRoamProfile->AuthType.authType[0])) {
+ sme_info("OWE Roaming not suppprted by fw");
+ return QDF_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