1 --- a/net/mac80211/chan.c
2 +++ b/net/mac80211/chan.c
3 @@ -77,6 +77,9 @@ bool ieee80211_set_channel_type(struct i
4 switch (tmp->vif.bss_conf.channel_type) {
5 case NL80211_CHAN_NO_HT:
6 case NL80211_CHAN_HT20:
7 + if (superchan > tmp->vif.bss_conf.channel_type)
10 superchan = tmp->vif.bss_conf.channel_type;
12 case NL80211_CHAN_HT40PLUS: