From: Jason Abele Date: Wed, 18 Feb 2015 00:10:41 +0000 (-0800) Subject: cfg80211: fix n_reg_rules to match world_regdom X-Git-Tag: v4.9.8~4560^2~2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28981e5eb45fe13e1d2c9e0e2e189dc5c8682006;p=platform%2Fkernel%2Flinux-rpi3.git cfg80211: fix n_reg_rules to match world_regdom 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 Signed-off-by: Johannes Berg --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index b586d0d..48dfc7b 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 */