]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cfg80211: fix can_beacon_sec_chan, reenable HT40
authorMark Mentovai <mark@moxienet.com>
Wed, 17 Nov 2010 21:34:37 +0000 (16:34 -0500)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:52 +0000 (11:58 -0700)
[ upstream commit 09a02fdb919876c01e8f05960750a418b3f7fa48 ]

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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: stable@kernel.org
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/chan.c

index 93d89d607d5a0327c260194a89ce2874eddb510e..bbaab4b0a4b6ce7ec7a079b31d7e5ff8617532ab 100644 (file)
@@ -53,8 +53,10 @@ static bool can_beacon_sec_chan(struct wiphy *wiphy,
        switch (channel_type) {
        case NL80211_CHAN_HT40PLUS:
                diff = 20;
+               break;
        case NL80211_CHAN_HT40MINUS:
                diff = -20;
+               break;
        default:
                return false;
        }