Skip to content

Commit

Permalink
cfg80211: fix can_beacon_sec_chan, reenable HT40
Browse files Browse the repository at this point in the history
This follows wireless-testing 9236d83
("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>
  • Loading branch information
Mark Mentovai authored and John W. Linville committed Nov 18, 2010
1 parent 9236d83 commit 09a02fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/wireless/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 09a02fd

Please sign in to comment.