diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2012-04-26 15:01:07 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-08 21:53:42 -0400 |
commit | c7d258288f2ad11eaa9656f6f9f48272a102fd1b (patch) | |
tree | 6519a204dab75b0983c88dda228d25e45bd531c0 /net/mac80211/mesh_plink.c | |
parent | e87278e730b11e9852fe0fe967908ef5a4e6e6a0 (diff) | |
download | linux-c7d258288f2ad11eaa9656f6f9f48272a102fd1b.tar.gz linux-c7d258288f2ad11eaa9656f6f9f48272a102fd1b.tar.bz2 linux-c7d258288f2ad11eaa9656f6f9f48272a102fd1b.zip |
mac80211: don't transmit 40MHz frames to 20MHz peer
If a mesh peer indicates it is operating as 20MHz-only in its HT
operation IE, have the rate control algorithm respect this by disabling
the equivalent bit in the ieee80211_sta HT capabilities.
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index f4124d7c556c..6209327840f7 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c @@ -302,6 +302,12 @@ static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata, else memset(&sta->sta.ht_cap, 0, sizeof(sta->sta.ht_cap)); + if (elems->ht_operation) + if (!(elems->ht_operation->ht_param & + IEEE80211_HT_PARAM_CHAN_WIDTH_ANY)) + sta->sta.ht_cap.cap &= + ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; + rate_control_rate_init(sta); spin_unlock_bh(&sta->lock); |