summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-11 20:55:54 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-11 20:55:54 +0000
commit7746d05fee586a3ad19c57c51677d2a13e508593 (patch)
tree9d6b6ac1607ce54451f80829df06e6f64c72a58e /package/mac80211/patches/581-mac80211_chantype_change_fix.patch
parentfdb9acb4b967831ced46cbfd8f01f7a251d49dbd (diff)
mac80211/ath9k: improve pending patches based on review feedback
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26041 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/581-mac80211_chantype_change_fix.patch')
-rw-r--r--package/mac80211/patches/581-mac80211_chantype_change_fix.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/mac80211/patches/581-mac80211_chantype_change_fix.patch b/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
index 87e277298..b855d1d80 100644
--- a/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
+++ b/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
@@ -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: