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-Tag: v2.6.38-rc1~476^2~169^2^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80d7e403c97b712e302ec37e9beceff1dbdc9402;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 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;