ath9k: Fix bug in NF calibration
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 23 Jan 2009 05:50:55 +0000 (11:20 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:23 +0000 (16:01 -0500)
The number of chainmasks for AR9285 weren't being
setup when running NF calibration.

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

index d16f9fe48a9f18483ffb9316a14b05b2759e8ae4..c6d1de0f1e2179db75eaa9ac25ec5cae105b7136 100644 (file)
@@ -620,7 +620,9 @@ void ath9k_hw_loadnf(struct ath_hal *ah, struct ath9k_channel *chan)
        };
        u8 chainmask;
 
-       if (AR_SREV_9280(ah))
+       if (AR_SREV_9285(ah))
+               chainmask = 0x9;
+       else if (AR_SREV_9280(ah))
                chainmask = 0x1B;
        else
                chainmask = 0x3F;