Skip to content

Commit

Permalink
ath9k: Remove redundant chainmask check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith authored and John W. Linville committed Apr 22, 2009
1 parent bdbdf46 commit 6ed6a05
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/net/wireless/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2189,14 +2189,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
ah->txchainmask = sc->tx_chainmask;
ah->rxchainmask = sc->rx_chainmask;

if (AR_SREV_9285(ah)) {
ah->txchainmask &= 0x1;
ah->rxchainmask &= 0x1;
} else if (AR_SREV_9280(ah)) {
ah->txchainmask &= 0x3;
ah->rxchainmask &= 0x3;
}

if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
return -EIO;

Expand Down

0 comments on commit 6ed6a05

Please sign in to comment.