]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k_hw: fix antenna diversity on AR9285
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:39 +0000 (12:48 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:15:32 +0000 (16:15 -0400)
commit07a30e8ffd9aaed5247278c2864cc0e45e393ee3
treedc24543cdde661a2496b9cf3eba76161684fc4ef
parent88fe50e62b5327f0ab16aace289015cbb94982bd
ath9k_hw: fix antenna diversity on AR9285

commit 601e0cb165e65dc185b31fe7ebd2c0169ea47306 upstream.

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.

[PG: drop ar9003_eeprom.c change; v2.6.34 doesn't have it yet]

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/ath9k/eeprom_4k.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c