aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2012-04-18 22:24:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-23 15:34:07 -0400
commitaee286c2cf94929f90d4d1f64ee9b316007ba284 (patch)
treeca3f8a9e70d36d2960b8f8620c328b135c3c7483 /net/mac80211/util.c
parente76781e48f969e044d318485274b9574f1ccc3dd (diff)
mac80211: fix STA channel width field
According to IEEE 802.11 8.4.2.59, set the "STA channel width" bit to 0 if transmitting STA is using a 20mhz channel. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 89c1e5b9ba94..577942bfc024 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1684,7 +1684,9 @@ u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
1684 ht_oper->ht_param = IEEE80211_HT_PARAM_CHA_SEC_NONE; 1684 ht_oper->ht_param = IEEE80211_HT_PARAM_CHA_SEC_NONE;
1685 break; 1685 break;
1686 } 1686 }
1687 if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) 1687 if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 &&
1688 channel_type != NL80211_CHAN_NO_HT &&
1689 channel_type != NL80211_CHAN_HT20)
1688 ht_oper->ht_param |= IEEE80211_HT_PARAM_CHAN_WIDTH_ANY; 1690 ht_oper->ht_param |= IEEE80211_HT_PARAM_CHAN_WIDTH_ANY;
1689 1691
1690 /* 1692 /*