summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPragaspathi Thilagaraj <tpragasp@codeaurora.org>2019-06-19 12:40:32 +0530
committerPragaspathi Thilagaraj <tpragasp@codeaurora.org>2019-06-19 12:43:32 +0530
commite195e362d23fcb6dbe5f8478fdd2ed70aeef6785 (patch)
treebec5a2243e417786f79e0547918229842e5c6ba9
parentbdca97fb188e7c1b0c829dfa2978e5a8e4ddcd5b (diff)
qcacld-3.0: Advertise BSS transition enabled in extended capabilities
When BTM config is disabled in the supplicant, the BSS transition bit (19) of the extended capabilities will be disabled. If BTM offload is enabled, currently driver still advertises that the BSS transition bit(19) as disabled. This results in AP disabling 11v for this STA. Advertise the BSS transition bit (19) as enabled in the extended capabilities if btm_offload ini bit 1 is enabled. Change-Id: I7c1977294a2e166321951ee0ec31f18929c42176 CRs-Fixed: 2455919
-rw-r--r--core/mac/inc/sir_mac_prot_def.h3
-rw-r--r--core/mac/src/pe/lim/lim_send_management_frames.c1
-rw-r--r--core/mac/src/sys/legacy/src/utils/src/parser_api.c5
3 files changed, 7 insertions, 2 deletions
diff --git a/core/mac/inc/sir_mac_prot_def.h b/core/mac/inc/sir_mac_prot_def.h
index 07042919d9cd..724ac8e9ad3c 100644
--- a/core/mac/inc/sir_mac_prot_def.h
+++ b/core/mac/inc/sir_mac_prot_def.h
@@ -406,6 +406,9 @@
#define VHT_MCS_1x1 0xFFFC
#define VHT_MCS_2x2 0xFFF3
+/* Mask to check if BTM offload is enabled/disabled*/
+#define BTM_OFFLOAD_ENABLED_MASK 0x01
+
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
#define SIR_MAC_QCOM_VENDOR_EID 200
#define SIR_MAC_QCOM_VENDOR_OUI "\x00\xA0\xC6"
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c
index 2ff0358a1866..c43755649217 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -1613,7 +1613,6 @@ static QDF_STATUS lim_assoc_tx_complete_cnf(tpAniSirGlobal mac_ctx,
*
* Return: Void
*/
-
void
lim_send_assoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
tLimMlmAssocReq *mlm_assoc_req,
diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c
index 1513d45df870..e0eaafa01c0b 100644
--- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c
+++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -1215,6 +1215,9 @@ populate_dot11f_ext_cap(tpAniSirGlobal pMac,
if (psessionEntry && psessionEntry->enable_bcast_probe_rsp)
p_ext_cap->fils_capability = 1;
+ if (pMac->roam.configParam.btm_offload_config & BTM_OFFLOAD_ENABLED_MASK)
+ p_ext_cap->bss_transition = 1;
+
/* Need to calulate the num_bytes based on bits set */
if (pDot11f->present)
pDot11f->num_bytes = lim_compute_ext_cap_ie_length(pDot11f);