aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/hw.c
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilkumar@atheros.com>2009-01-26 09:58:14 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:01:49 -0500
commit793c592995b841667fa6d1a36a98880430dcc8f4 (patch)
tree64388d808d27c48e14f4b6338347409d921832ff /drivers/net/wireless/ath9k/hw.c
parent0c6666e4c43a10a224c63e3270c963d97f7e8cc8 (diff)
ath9k: Fix AR9285 specific noise floor eeprom reads.
Fix AR9285 specific noise floor reads and initialize tx and rx chainmask during reset. This along with the following earlier patches of ath9k fixes an issue with association noticed in noisy environment. ath9k: Fix typo in chip version check ath9k: Remove unnecessary gpio configuration in ath9k_hw_reset() ath9k: Fix bug in NF calibration Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath9k/hw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index bb8628c7efa1..77282345efc1 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -2165,7 +2165,10 @@ int ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan,
2165 ahp->ah_txchainmask = sc->sc_tx_chainmask; 2165 ahp->ah_txchainmask = sc->sc_tx_chainmask;
2166 ahp->ah_rxchainmask = sc->sc_rx_chainmask; 2166 ahp->ah_rxchainmask = sc->sc_rx_chainmask;
2167 2167
2168 if (AR_SREV_9280(ah)) { 2168 if (AR_SREV_9285(ah)) {
2169 ahp->ah_txchainmask &= 0x1;
2170 ahp->ah_rxchainmask &= 0x1;
2171 } else if (AR_SREV_9280(ah)) {
2169 ahp->ah_txchainmask &= 0x3; 2172 ahp->ah_txchainmask &= 0x3;
2170 ahp->ah_rxchainmask &= 0x3; 2173 ahp->ah_rxchainmask &= 0x3;
2171 } 2174 }