From: Helmut Schaa Date: Fri, 19 Nov 2010 11:40:26 +0000 (+0100) Subject: mac80211: Apply ht_opmode changes in ieee80211_change_bss X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=80d7e403c97b712e302ec37e9beceff1dbdc9402;p=linux-beck.git mac80211: Apply ht_opmode changes in ieee80211_change_bss Cc: Johannes Berg Signed-off-by: Helmut Schaa Signed-off-by: John W. Linville --- diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index af9620406321..c30b8b72eedb 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;