diff mbox

cfg80211: fix n_reg_rules to match world_regdom

Message ID 1424218241-15747-1-git-send-email-jason.abele@gmail.com (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show

Commit Message

Jason Abele Feb. 18, 2015, 12:10 a.m. UTC
From: Jason Abele <jason@aether.com>

There are currently 8 rules in the world_regdom, but only the first 6
are applied due to an incorrect value for n_reg_rules.  This causes
channels 149-165 and 60GHz to be disabled.

Signed-off-by: Jason Abele <jason@aether.com>
---
 net/wireless/reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Johannes Berg Feb. 24, 2015, 9:59 a.m. UTC | #1
On Tue, 2015-02-17 at 16:10 -0800, Jason Abele wrote:
> From: Jason Abele <jason@aether.com>
> 
> There are currently 8 rules in the world_regdom, but only the first 6
> are applied due to an incorrect value for n_reg_rules.  This causes
> channels 149-165 and 60GHz to be disabled.

Applied, thanks.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index d39d1cb..277be15 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -228,7 +228,7 @@  static DECLARE_DELAYED_WORK(reg_timeout, reg_timeout_work);
 
 /* We keep a static world regulatory domain in case of the absence of CRDA */
 static const struct ieee80211_regdomain world_regdom = {
-	.n_reg_rules = 6,
+	.n_reg_rules = 8,
 	.alpha2 =  "00",
 	.reg_rules = {
 		/* IEEE 802.11b/g, channels 1..11 */