Commit 8a096148 authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville

brcmsmac: fix mismatch in number of custom regulatory rules

The driver provides the cfg80211 regulatory framework with a set of
custom rules. However, there was a mismatch in number of rules
and the actual rules provided. This resulted in setting an invalid
power level:

ieee80211 phy0: brcms_ops_config: change channel 13
ieee80211 phy0: brcms_ops_config: Error setting power_level (8758364)

Closer look in cfg80211 regulatory blurb showed following bogus rule:
cfg80211: 0 KHz - -60446948 KHz @ 875836468 KHz), (875836468 mBi, 875836468 mBm)

Cc: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: default avatarPiotr Haber <phaber@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f1072384
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
NL80211_RRF_NO_IBSS) NL80211_RRF_NO_IBSS)
static const struct ieee80211_regdomain brcms_regdom_x2 = { static const struct ieee80211_regdomain brcms_regdom_x2 = {
.n_reg_rules = 7, .n_reg_rules = 6,
.alpha2 = "X2", .alpha2 = "X2",
.reg_rules = { .reg_rules = {
BRCM_2GHZ_2412_2462, BRCM_2GHZ_2412_2462,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment