ath9k: Fix bug in initializing chain masks
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 16 Nov 2009 06:10:57 +0000 (11:40 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:13 +0000 (17:09 -0500)
Check for AR5416 ver 1.0 before calibrating 3 chains
for multi-chain. This is a WAR for calibration
failure.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c

index ffcc4f039fa2b2badeaac03978183864d447bdb3..53a7b980d8f69fc49a2497a7fdd9d13777affa70 100644 (file)
@@ -1146,7 +1146,7 @@ static void ath9k_hw_init_chain_masks(struct ath_hw *ah)
                REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP,
                            AR_PHY_SWAP_ALT_CHAIN);
        case 0x3:
-               if (((ah)->hw_version.macVersion <= AR_SREV_VERSION_9160)) {
+               if (ah->hw_version.macVersion == AR_SREV_REVISION_5416_10) {
                        REG_WRITE(ah, AR_PHY_RX_CHAINMASK, 0x7);
                        REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, 0x7);
                        break;