diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-11 20:55:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-11 20:55:54 +0000 |
commit | 4267b60892adcb39493122bd42bf371a7a85348f (patch) | |
tree | 9d6b6ac1607ce54451f80829df06e6f64c72a58e /package/mac80211/patches/581-mac80211_chantype_change_fix.patch | |
parent | 75d82d079ba47c95d987f179b6c092fff4ab9221 (diff) | |
download | upstream-4267b60892adcb39493122bd42bf371a7a85348f.tar.gz upstream-4267b60892adcb39493122bd42bf371a7a85348f.tar.bz2 upstream-4267b60892adcb39493122bd42bf371a7a85348f.zip |
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.patch | 8 |
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 87e277298a..b855d1d809 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: |