Skip to contentSkip to conversation

cfg80211: fix n_reg_rules to match world_regdom

PATCH Applied Jason Abele 2 participants 2 messages Feb 18, 2015 – Feb 24, 2015 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfg80211: fix n_reg_rules to match world_regdom

From: Jason Abele <[email protected]>

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.

---
 net/wireless/reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/reg.c +1 -1
index d39d1cb..277be15 100644
@@ -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 */
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Jason Abele

From: Jason Abele <[email protected]>

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