aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-12-01 12:29:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-22 13:31:17 -0500
commitf38fd12fa7b7b98e158a9b31d388da34eef25c22 (patch)
treebf5f8407e3456e691e4ef873d343c3403974937a /net/mac80211/mlme.c
parent8b73d13a21ae889e747cac180ff27c5a0a88e6a4 (diff)
mac80211: allow disabling 40MHz on 2.4GHz
In some situations it is required that a system be configured with no support for 40 MHz channels in the 2.4 GHz band. Rather than imposing any such restrictions on everybody, allow configuration a system like that with a module parameter. It is writable at runtime but only takes effect at the time of the next association. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 0a762a9ba4df..a7472c979c63 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -400,6 +400,12 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
400 400
401 /* determine capability flags */ 401 /* determine capability flags */
402 402
403 if (ieee80211_disable_40mhz_24ghz &&
404 sband->band == IEEE80211_BAND_2GHZ) {
405 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
406 cap &= ~IEEE80211_HT_CAP_SGI_40;
407 }
408
403 switch (ht_info->ht_param & IEEE80211_HT_PARAM_CHA_SEC_OFFSET) { 409 switch (ht_info->ht_param & IEEE80211_HT_PARAM_CHA_SEC_OFFSET) {
404 case IEEE80211_HT_PARAM_CHA_SEC_ABOVE: 410 case IEEE80211_HT_PARAM_CHA_SEC_ABOVE:
405 if (flags & IEEE80211_CHAN_NO_HT40PLUS) { 411 if (flags & IEEE80211_CHAN_NO_HT40PLUS) {