diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:29 -0400 |
commit | 6ed6a05e5c8061cdcd69a418c90c5f11979ce650 (patch) | |
tree | 380a46bae2b7574c31aba53cd25ccbc1621a4c55 /drivers/net/wireless/ath9k | |
parent | bdbdf46daa6dccb472f56559854477faddc44de9 (diff) |
ath9k: Remove redundant chainmask check
We get the valid chainmasks on HW attach, checking
it again during reset is redundant. This patch removes the check.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 13d8c2a4efae..22ef93f3d47c 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -2189,14 +2189,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | |||
2189 | ah->txchainmask = sc->tx_chainmask; | 2189 | ah->txchainmask = sc->tx_chainmask; |
2190 | ah->rxchainmask = sc->rx_chainmask; | 2190 | ah->rxchainmask = sc->rx_chainmask; |
2191 | 2191 | ||
2192 | if (AR_SREV_9285(ah)) { | ||
2193 | ah->txchainmask &= 0x1; | ||
2194 | ah->rxchainmask &= 0x1; | ||
2195 | } else if (AR_SREV_9280(ah)) { | ||
2196 | ah->txchainmask &= 0x3; | ||
2197 | ah->rxchainmask &= 0x3; | ||
2198 | } | ||
2199 | |||
2200 | if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) | 2192 | if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) |
2201 | return -EIO; | 2193 | return -EIO; |
2202 | 2194 | ||