qcacld-3.0: Fix TDLS HT Cap channel width

Fix TDLS HT Cap channel width, select supportedChannelWidthSet based on
channel bonding settings for each band.

Change-Id: I89bae8bfb3d193da5e7165480447bc7471f93d06
CRs-Fixed: 2380598
This commit is contained in:
hangtian 2019-01-16 13:26:20 +08:00 committed by nshrivas
parent 0c9aebb495
commit ca83cca3d0

View File

@ -692,7 +692,7 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
nss = QDF_MIN(nss, mac->user_configured_nss);
if (IS_DOT11_MODE_HT(selfDot11Mode)) {
/* Include HT Capability IE */
populate_dot11f_ht_caps(mac, NULL, htCap);
populate_dot11f_ht_caps(mac, pe_session, htCap);
val_len = SIZE_OF_SUPPORTED_MCS_SET;
wlan_mlme_get_cfg_str(&htCap->supportedMCSSet[0],
&mac->mlme_cfg->rates.supported_mcs_set,
@ -714,8 +714,9 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
* 11.21.1 General: The channel width of the TDLS direct link on
* the base channel shall not exceed the channel width of the
* BSS to which the TDLS peer STAs are associated.
* Select supportedChannelWidthSet based on channel bonding
* settings for each band
*/
htCap->supportedChannelWidthSet = 1;
} else {
htCap->present = 0;
}