mac80211: Apply ht_opmode changes in ieee80211_change_bss
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 19 Nov 2010 11:40:26 +0000 (12:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 8 Dec 2010 20:38:43 +0000 (15:38 -0500)
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c

index af96204..c30b8b7 100644 (file)
@@ -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;