ssb: update ssb to version from linux-next-20110311
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 581-mac80211_chantype_change_fix.patch
index 87e277298a7a875d9970a3cbe418bb4c1dba0210..b855d1d80988d21393182813b892b433c1ed4351 100644 (file)
@@ -1,10 +1,12 @@
 --- a/net/mac80211/chan.c
 +++ b/net/mac80211/chan.c
-@@ -76,6 +76,7 @@ bool ieee80211_set_channel_type(struct i
+@@ -77,6 +77,9 @@ bool ieee80211_set_channel_type(struct i
                switch (tmp->vif.bss_conf.channel_type) {
                case NL80211_CHAN_NO_HT:
-+                      break;
                case NL80211_CHAN_HT20:
++                      if (superchan > tmp->vif.bss_conf.channel_type)
++                              break;
++
                        superchan = tmp->vif.bss_conf.channel_type;
                        break;
+               case NL80211_CHAN_HT40PLUS: