|
@@ -3831,11 +3831,17 @@ void lim_update_sta_run_time_ht_switch_chnl_params(struct mac_context *mac,
|
|
|
struct pe_session *pe_session)
|
|
|
{
|
|
|
qdf_freq_t chan_freq;
|
|
|
+ uint32_t self_cb_mode = mac->roam.configParam.channelBondingMode5GHz;
|
|
|
+
|
|
|
+ if (WLAN_REG_IS_24GHZ_CH_FREQ(pe_session->curr_op_freq))
|
|
|
+ self_cb_mode = mac->roam.configParam.channelBondingMode24GHz;
|
|
|
|
|
|
/* If self capability is set to '20Mhz only', then do not change the CB mode. */
|
|
|
- if (!lim_get_ht_capability
|
|
|
- (mac, eHT_SUPPORTED_CHANNEL_WIDTH_SET, pe_session))
|
|
|
+ if (self_cb_mode == WNI_CFG_CHANNEL_BONDING_MODE_DISABLE) {
|
|
|
+ pe_debug("self_cb_mode 0 for freq %d",
|
|
|
+ pe_session->curr_op_freq);
|
|
|
return;
|
|
|
+ }
|
|
|
|
|
|
if (wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) &&
|
|
|
pe_session->force_24ghz_in_ht20) {
|