From da0bd5531c2974069db3a6ab88e0f50a3b9d3c0d Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Thu, 29 Feb 2024 23:52:17 -0800 Subject: [PATCH] qcacld-3.0: Disable BTM flag in EXT caps IE Host sends WMI_VDEV_SET_IE_CMDID to FW to enable disable BTM ext cap after association. If host receives disable btm request from userspace, host should disable BTM flag in EXT caps IE. FW uses same ext cap in re-association request. Change-Id: Id85a4328e41742e4eb6c7f5fe3d5a9267c248c75 CRs-Fixed: 3747320 --- core/mac/src/pe/lim/lim_utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index f54a24430d..7c64e00305 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -6186,6 +6186,7 @@ QDF_STATUS lim_send_ext_cap_ie(struct mac_context *mac_ctx, struct vdev_ie_info *vdev_ie; struct scheduler_msg msg = {0}; QDF_STATUS status; + struct pe_session *session_entry; dot11mode = mac_ctx->mlme_cfg->dot11_mode.dot11_mode; if (IS_DOT11_MODE_VHT(dot11mode)) @@ -6207,6 +6208,12 @@ QDF_STATUS lim_send_ext_cap_ie(struct mac_context *mac_ctx, lim_merge_extcap_struct(&ext_cap_data, extra_extcap, true); } + /* After merging extcap, check whether disable btm bit require or not */ + session_entry = pe_find_session_by_vdev_id(mac_ctx, vdev_id); + if (session_entry) + populate_dot11f_btm_extended_caps(mac_ctx, session_entry, + &ext_cap_data); + /* Allocate memory for the WMI request, and copy the parameter */ vdev_ie = qdf_mem_malloc(sizeof(*vdev_ie) + num_bytes); if (!vdev_ie)