aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1211rw
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-07-01 13:21:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-07-10 14:14:55 -0400
commit86d95c214357df0e27dc6af493b62a1073e9d6b2 (patch)
treee24f95f55959ff40e3a6e9338be03f196def8fa6 /drivers/net/wireless/zd1211rw
parentfb038c279694638cb3cd24d496062ae38700f542 (diff)
[PATCH] zd1211rw: Allow channels 1-11 for unrecognised regulatory domains
Zen Kato's device has a regulatory domain value of 0x49, which is not an IEEE 802.11 code and is not even identified in the vendor driver. Recent versions of the vendor driver don't even look at the regdomain value any more, and just allow channels 1-11 everywhere. This patch brings us more in line with that behaviour, by allowing channels 1-11 for regdomains which we don't know about. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw')
-rw-r--r--drivers/net/wireless/zd1211rw/zd_mac.c13
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;