diff options
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 6753d240c168..522de3f0dfaf 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -113,11 +113,14 @@ int zd_mac_init_hw(struct zd_mac *mac, u8 device_type) | |||
113 | if (r) | 113 | if (r) |
114 | goto disable_int; | 114 | goto disable_int; |
115 | if (!zd_regdomain_supported(default_regdomain)) { | 115 | if (!zd_regdomain_supported(default_regdomain)) { |
116 | dev_dbg_f(zd_mac_dev(mac), | 116 | /* The vendor driver overrides the regulatory domain and |
117 | "Regulatory Domain %#04x is not supported.\n", | 117 | * allowed channel registers and unconditionally restricts |
118 | default_regdomain); | 118 | * available channels to 1-11 everywhere. Match their |
119 | r = -EINVAL; | 119 | * questionable behaviour only for regdomains which we don't |
120 | goto disable_int; | 120 | * recognise. */ |
121 | dev_warn(zd_mac_dev(mac), "Unrecognised regulatory domain: " | ||
122 | "%#04x. Defaulting to FCC.\n", default_regdomain); | ||
123 | default_regdomain = ZD_REGDOMAIN_FCC; | ||
121 | } | 124 | } |
122 | spin_lock_irq(&mac->lock); | 125 | spin_lock_irq(&mac->lock); |
123 | mac->regdomain = mac->default_regdomain = default_regdomain; | 126 | mac->regdomain = mac->default_regdomain = default_regdomain; |