Skip to content
Snippets Groups Projects
Commit 09a02fdb authored by Mark Mentovai's avatar Mark Mentovai Committed by John W. Linville
Browse files

cfg80211: fix can_beacon_sec_chan, reenable HT40


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

Signed-off-by: default avatarMark Mentovai <mark@moxienet.com>
Cc: stable@kernel.org
Acked-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9236d838
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment