1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-12 03:05:32 +03:00
openwrt-xburst/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
nbd 7746d05fee mac80211/ath9k: improve pending patches based on review feedback
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-11 20:55:54 +00:00

13 lines
367 B
Diff

--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -77,6 +77,9 @@ bool ieee80211_set_channel_type(struct i
switch (tmp->vif.bss_conf.channel_type) {
case NL80211_CHAN_NO_HT:
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: