[PATCH 1/3] Set correct tx_channel_width_set in config_bss
Eugene Krasnikov
k.eugene.e at gmail.com
Tue Jul 16 12:34:34 EDT 2013
Based on IE IEEE80211_HT_CAP_SUP_WIDTH_20_40 configure
HW if bss supports 40MHz channel or not.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
smd.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/smd.c b/smd.c
index b49167d..9b4458e 100644
--- a/smd.c
+++ b/smd.c
@@ -814,7 +814,10 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif,
bss->rifs_mode = 0;
bss->beacon_interval = vif->bss_conf.beacon_int;
bss->dtim_period = wcn->dtim_period;
- bss->tx_channel_width_set = 0;
+ if (sta && sta->ht_cap.ht_supported)
+ bss->tx_channel_width_set =
+ test_bit(IEEE80211_HT_CAP_SUP_WIDTH_20_40,
+ (unsigned long *)&sta->ht_cap.cap);
bss->oper_channel = WCN36XX_HW_CHANNEL(wcn);
if (conf_is_ht40_minus(&wcn->hw->conf))
bss->ext_channel = IEEE80211_HT_PARAM_CHA_SEC_BELOW;
--
1.7.11.3
More information about the wcn36xx
mailing list