mac80211: fix channel type recalculation with HT and non-HT interfaces
authorFelix Fietkau <nbd@openwrt.org>
Fri, 11 Mar 2011 20:45:51 +0000 (21:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Mar 2011 18:46:58 +0000 (14:46 -0400)
commit9db372fdd5de9e0464c77a9d3db2a3b356db8668
tree25b417873775cf02d9f1d05cf70d70d5b3897986
parentefff395e97fffd55c60c77c09a18deba8d84e2c0
mac80211: fix channel type recalculation with HT and non-HT interfaces

When running an AP interface along with the cooked monitor interface created
by hostapd, adding an interface and deleting it again triggers a channel type
recalculation during which the (non-HT) monitor interface takes precedence
over the HT AP interface, thus causing the channel type to be set to non-HT.
Fix this by ensuring that a more wide channel type will not be overwritten
by a less wide channel type.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/chan.c