diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-07-11 14:48:39 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-13 00:05:37 +0400 |
commit | 601e0cb165e65dc185b31fe7ebd2c0169ea47306 (patch) | |
tree | e587bc1ec2b9b90816c783ad00be1762760aa532 /drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |
parent | e796643eaf0889c346e6b69c5afe777c327b1919 (diff) | |
download | linux-601e0cb165e65dc185b31fe7ebd2c0169ea47306.tar.xz |
ath9k_hw: fix antenna diversity on AR9285
On AR9285, the antenna switch configuration register uses more than just
16 bits. Because of an arbitrary mask applied to the EEPROM value that
stores this configuration, diversity was broken in some cases, leading
to a significant degradation in signal strength.
Fix this by changing the callback to return a 32 bit value and remove
the arbitrary mask.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index 343c9a427acb..ace8d2678b18 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c @@ -951,7 +951,7 @@ static u8 ath9k_hw_ar9300_get_num_ant_config(struct ath_hw *ah, return 1; } -static u16 ath9k_hw_ar9300_get_eeprom_antenna_cfg(struct ath_hw *ah, +static u32 ath9k_hw_ar9300_get_eeprom_antenna_cfg(struct ath_hw *ah, struct ath9k_channel *chan) { return -EINVAL; |