From ca83cca3d070988a0c92c5f718af14a61828ccc6 Mon Sep 17 00:00:00 2001 From: hangtian Date: Wed, 16 Jan 2019 13:26:20 +0800 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_process_tdls.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index e0153e193a..9bbcfbf822 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -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; }