summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2010-11-19 12:40:26 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-12-08 15:38:43 -0500
commit80d7e403c97b712e302ec37e9beceff1dbdc9402 (patch)
tree43c158c73afe35160fc7b5415e7f1cac821b1689
parent50b12f597be354a5a224f05c65c54c0667e57aec (diff)
downloadop-kernel-dev-80d7e403c97b712e302ec37e9beceff1dbdc9402.zip
op-kernel-dev-80d7e403c97b712e302ec37e9beceff1dbdc9402.tar.gz
mac80211: Apply ht_opmode changes in ieee80211_change_bss
Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--net/mac80211/cfg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index af96204..c30b8b7 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1134,6 +1134,12 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS;
}
+ if (params->ht_opmode >= 0) {
+ sdata->vif.bss_conf.ht_operation_mode =
+ (u16) params->ht_opmode;
+ changed |= BSS_CHANGED_HT;
+ }
+
ieee80211_bss_info_change_notify(sdata, changed);
return 0;
OpenPOWER on IntegriCloud