]> Git Repo - linux.git/commitdiff
cfg80211: fix can_beacon_sec_chan, reenable HT40
authorMark Mentovai <[email protected]>
Wed, 17 Nov 2010 21:34:37 +0000 (16:34 -0500)
committerJohn W. Linville <[email protected]>
Thu, 18 Nov 2010 16:35:05 +0000 (11:35 -0500)
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 <[email protected]>
Cc: [email protected]
Acked-by: Luis R. Rodriguez <[email protected]
Signed-off-by: John W. Linville <[email protected]>
net/wireless/chan.c

index c8d190d911e46984b5eb43ebf3f625e035a32bed..17cd0c04d139045bbb0802a74d9628731d9428dc 100644 (file)
@@ -54,8 +54,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;
        }
This page took 0.067141 seconds and 4 git commands to generate.