cfg80211: fix can_beacon_sec_chan, reenable HT40

This follows wireless-testing 9236d838c920e90708570d9bbd7bb82d30a38130
("cfg80211: fix extension channel checks to initiate communication") and
fixes accidental case fall-through. Without this fix, HT40 is entirely
blocked.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
Cc: stable@kernel.org
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by Mark Mentovai and committed by John W. Linville 09a02fdb 9236d838

+2
+2
net/wireless/chan.c
··· 54 54 switch (channel_type) { 55 55 case NL80211_CHAN_HT40PLUS: 56 56 diff = 20; 57 + break; 57 58 case NL80211_CHAN_HT40MINUS: 58 59 diff = -20; 60 + break; 59 61 default: 60 62 return false; 61 63 }