ath9k: enable TPC by default
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Thu, 18 Dec 2014 23:18:12 +0000 (00:18 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Dec 2014 17:13:55 +0000 (19:13 +0200)
Enable hw TPC by default on AR9003 based chips

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/hw.c

index 6d4b273..258c4d2 100644 (file)
@@ -422,6 +422,9 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
        ah->power_mode = ATH9K_PM_UNDEFINED;
        ah->htc_reset_init = true;
 
        ah->power_mode = ATH9K_PM_UNDEFINED;
        ah->htc_reset_init = true;
 
+       /* ar9002 does not support TPC for the moment */
+       ah->tpc_enabled = !!AR_SREV_9300_20_OR_LATER(ah);
+
        ah->ani_function = ATH9K_ANI_ALL;
        if (!AR_SREV_9300_20_OR_LATER(ah))
                ah->ani_function &= ~ATH9K_ANI_MRC_CCK;
        ah->ani_function = ATH9K_ANI_ALL;
        if (!AR_SREV_9300_20_OR_LATER(ah))
                ah->ani_function &= ~ATH9K_ANI_MRC_CCK;