ath9k_hw: Don't configure AR_CH0_THERM for AR9340
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Tue, 19 Apr 2011 13:59:11 +0000 (19:29 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:11 +0000 (14:50 -0400)
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

index 4a9271802991bdf696d28f9fe042b0d82eb5336e..685ce91fb71eb909c4ad7511adaa2418bcd38840 100644 (file)
@@ -3448,9 +3448,13 @@ static void ar9003_hw_xpa_bias_level_apply(struct ath_hw *ah, bool is2ghz)
                REG_RMW_FIELD(ah, AR_CH0_TOP2, AR_CH0_TOP2_XPABIASLVL, bias);
        else {
                REG_RMW_FIELD(ah, AR_CH0_TOP, AR_CH0_TOP_XPABIASLVL, bias);
-               REG_RMW_FIELD(ah, AR_CH0_THERM, AR_CH0_THERM_XPABIASLVL_MSB,
-                             bias >> 2);
-               REG_RMW_FIELD(ah, AR_CH0_THERM, AR_CH0_THERM_XPASHORT2GND, 1);
+               if (!AR_SREV_9340(ah)) {
+                       REG_RMW_FIELD(ah, AR_CH0_THERM,
+                                     AR_CH0_THERM_XPABIASLVL_MSB,
+                                     bias >> 2);
+                       REG_RMW_FIELD(ah, AR_CH0_THERM,
+                                     AR_CH0_THERM_XPASHORT2GND, 1);
+               }
        }
 }