linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cfg80211: fix can_beacon_sec_chan, reenable HT40
@ 2010-11-17 21:34 Mark Mentovai
  2010-11-18  2:40 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Mentovai @ 2010-11-17 21:34 UTC (permalink / raw)
  To: linux-wireless; +Cc: stable, Luis R. Rodriguez

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.

Cc: stable@kernel.org
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Mark Mentovai <mark@moxienet.com>
---
 net/wireless/chan.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index c8d190d..17cd0c0 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -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;
 	}
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-18  2:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 21:34 [PATCH] cfg80211: fix can_beacon_sec_chan, reenable HT40 Mark Mentovai
2010-11-18  2:40 ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).