aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorAlexander Simon <an.alexsimon@googlemail.com>2011-11-30 10:56:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-06 16:05:25 -0500
commit13c40c54682ffe62977f670681268a26d500d6fa (patch)
tree4aa8897bc4054f13a637f2f29a1555c3501b3e97 /net/mac80211/main.c
parentff3cc5f40f36db1a60a8f1051be7fbc92233419b (diff)
mac80211: Add HT operation modes for IBSS
The HT mode is set by iw (previous patchsets). The interface is set into the specified HT mode. HT mode and capabilities are announced in beacons. If we add a station that uses HT also, the fastest matching HT mode will be used for transmission. That means if we are using HT40+ and we add a station running on HT40-, we would transfer at HT20. If we join an IBSS with HT40, but the secondary channel is not available, we will fall back into HT20 as well. Allow frame aggregation to start in IBSS mode. Signed-off-by: Alexander Simon <an.alexsimon@googlemail.com> [siwu@hrz.tu-chemnitz.de: Updates] * remove implicit channel_type enum assumptions * use rate_control_rate_init() if channel type changed * remove channel flags check * activate HT IBSS feature support * slightly reword commit message * rebase on wireless-testing Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 24cc50b963a9..60198ac664a0 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -570,7 +570,8 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
570 WIPHY_FLAG_OFFCHAN_TX | 570 WIPHY_FLAG_OFFCHAN_TX |
571 WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; 571 WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
572 572
573 wiphy->features = NL80211_FEATURE_SK_TX_STATUS; 573 wiphy->features = NL80211_FEATURE_SK_TX_STATUS |
574 NL80211_FEATURE_HT_IBSS;
574 575
575 if (!ops->set_key) 576 if (!ops->set_key)
576 wiphy->flags |= WIPHY_FLAG_IBSS_RSN; 577 wiphy->flags |= WIPHY_FLAG_IBSS_RSN;