]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/wireless/chan.c
cfg80211: fix can_beacon_sec_chan, reenable HT40
[net-next-2.6.git] / 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;
        }