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)