|
@@ -938,6 +938,7 @@ populate_dot11f_ht_caps(struct mac_context *mac,
|
|
|
qdf_size_t ncfglen;
|
|
|
QDF_STATUS nSirStatus;
|
|
|
uint8_t disable_high_ht_mcs_2x2 = 0;
|
|
|
+ struct ch_params ch_params = {0};
|
|
|
|
|
|
tSirMacTxBFCapabilityInfo *pTxBFCapabilityInfo;
|
|
|
tSirMacASCapabilityInfo *pASCapabilityInfo;
|
|
@@ -969,11 +970,22 @@ populate_dot11f_ht_caps(struct mac_context *mac,
|
|
|
if (WLAN_REG_IS_24GHZ_CH_FREQ(pe_session->curr_op_freq) &&
|
|
|
LIM_IS_STA_ROLE(pe_session) &&
|
|
|
WNI_CFG_CHANNEL_BONDING_MODE_DISABLE !=
|
|
|
- mac->roam.configParam.channelBondingMode24GHz)
|
|
|
+ mac->roam.configParam.channelBondingMode24GHz) {
|
|
|
pDot11f->supportedChannelWidthSet = 1;
|
|
|
- else
|
|
|
+ ch_params.ch_width = CH_WIDTH_40MHZ;
|
|
|
+ wlan_reg_set_channel_params_for_freq(
|
|
|
+ mac->pdev, pe_session->curr_op_freq, 0,
|
|
|
+ &ch_params);
|
|
|
+ if (ch_params.ch_width != CH_WIDTH_40MHZ)
|
|
|
+ pDot11f->supportedChannelWidthSet = 0;
|
|
|
+ pe_debug("pe ch offset %d ch_width %d htcap ch width set %d",
|
|
|
+ pe_session->htSecondaryChannelOffset,
|
|
|
+ ch_params.ch_width,
|
|
|
+ pDot11f->supportedChannelWidthSet);
|
|
|
+ } else {
|
|
|
pDot11f->supportedChannelWidthSet =
|
|
|
pe_session->htSupportedChannelWidthSet;
|
|
|
+ }
|
|
|
|
|
|
pDot11f->advCodingCap = pe_session->ht_config.adv_coding_cap;
|
|
|
pDot11f->txSTBC = pe_session->ht_config.tx_stbc;
|