summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/581-mac80211_chantype_change_fix.patch
blob: b855d1d80988d21393182813b892b433c1ed4351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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: