mac80211: backport channel type fix from r26038
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 11 Mar 2011 19:24:27 +0000 (19:24 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 11 Mar 2011 19:24:27 +0000 (19:24 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26039 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/581-mac80211_chantype_change_fix.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/581-mac80211_chantype_change_fix.patch b/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
new file mode 100644 (file)
index 0000000..87e2772
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/net/mac80211/chan.c
++++ b/net/mac80211/chan.c
+@@ -76,6 +76,7 @@ bool ieee80211_set_channel_type(struct i
+               switch (tmp->vif.bss_conf.channel_type) {
+               case NL80211_CHAN_NO_HT:
++                      break;
+               case NL80211_CHAN_HT20:
+                       superchan = tmp->vif.bss_conf.channel_type;
+                       break;