diff options
author | Daniel Drake <dsd@gentoo.org> | 2007-03-11 19:54:11 +0000 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-04-10 11:03:29 -0400 |
commit | ae6ead4623bfbc57f3945ff86f27e51811e2e91b (patch) | |
tree | a2ac8bbe117f91bad25dfc48c4e4824fcf672c75 /drivers/net/wireless/zd1211rw/zd_chip.c | |
parent | a21bd69e1509b43823c317c3bf3f7ffa99884356 (diff) | |
download | kernel_samsung_smdk4412-ae6ead4623bfbc57f3945ff86f27e51811e2e91b.tar.gz kernel_samsung_smdk4412-ae6ead4623bfbc57f3945ff86f27e51811e2e91b.tar.bz2 kernel_samsung_smdk4412-ae6ead4623bfbc57f3945ff86f27e51811e2e91b.zip |
[PATCH] zd1211rw: Reject AL2230S devices
zd1211rw currently detects AL2230S-based devices as AL2230, and hence
programs the RF incorrectly. Transmit silently fails on this
misconfiguration.
After this patch, AL2230S devices are rejected with an error message, to
avoid any confusion with an apparent driver bug.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_chip.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_chip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c index 9c64f894b71..9d299bd1885 100644 --- a/drivers/net/wireless/zd1211rw/zd_chip.c +++ b/drivers/net/wireless/zd1211rw/zd_chip.c @@ -337,6 +337,7 @@ static int read_pod(struct zd_chip *chip, u8 *rf_type) chip->patch_cr157 = (value >> 13) & 0x1; chip->patch_6m_band_edge = (value >> 21) & 0x1; chip->new_phy_layout = (value >> 31) & 0x1; + chip->al2230s_bit = (value >> 7) & 0x1; chip->link_led = ((value >> 4) & 1) ? LED1 : LED2; chip->supports_tx_led = 1; if (value & (1 << 24)) { /* LED scenario */ |