wireless: fix regulatory HT40 allowed check
authorFelix Fietkau <nbd@openwrt.org>
Fri, 11 Jan 2013 13:22:58 +0000 (14:22 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Jan 2013 13:32:20 +0000 (14:32 +0100)
commit55b183ad8635589ea731a31653de79a2626491c4
treef822db644128003a34f46d09ef05cae9a55a39ea
parent75e6934a9e996ee7cfe7a488b7f7cc2baa86717a
wireless: fix regulatory HT40 allowed check

commit 1a9193185f462a51815fe48491f8a6fb6b942551 "regulatory: code cleanup"
changed is_ht40_allowed without considering that IEEE80211_CHAN_NO_HT40 is
not just one flag, but two.
This is causing HT40- to be blocked completely.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c