aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2014-12-30 17:10:20 -0500
committerKalle Valo <kvalo@codeaurora.org>2015-01-15 07:47:34 -0500
commitb5939e8c71292bbedf1d36adf7784ce2d71ae3d7 (patch)
tree749a0e60d441c5148e71c9dea67678d081bf1261
parent9ddad58bee51663001ff118d65cc9166bafcd122 (diff)
ath9k: enable per-packet TPC on AR9002 based chips
Enable per-packet TPC on AR9002 based chips by default Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath9k/debug.c5
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index 1bed9d7589af..dd5d3914799b 100644
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -1078,11 +1078,6 @@ static ssize_t write_file_tpc(struct file *file, const char __user *user_buf,
1078 ssize_t len; 1078 ssize_t len;
1079 bool tpc_enabled; 1079 bool tpc_enabled;
1080 1080
1081 if (!AR_SREV_9300_20_OR_LATER(ah)) {
1082 /* ar9002 does not support TPC for the moment */
1083 return -EOPNOTSUPP;
1084 }
1085
1086 len = min(count, sizeof(buf) - 1); 1081 len = min(count, sizeof(buf) - 1);
1087 if (copy_from_user(buf, user_buf, len)) 1082 if (copy_from_user(buf, user_buf, len))
1088 return -EFAULT; 1083 return -EFAULT;
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 051540f78030..82d8f32a3461 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -424,8 +424,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
424 ah->power_mode = ATH9K_PM_UNDEFINED; 424 ah->power_mode = ATH9K_PM_UNDEFINED;
425 ah->htc_reset_init = true; 425 ah->htc_reset_init = true;
426 426
427 /* ar9002 does not support TPC for the moment */ 427 ah->tpc_enabled = true;
428 ah->tpc_enabled = !!AR_SREV_9300_20_OR_LATER(ah);
429 428
430 ah->ani_function = ATH9K_ANI_ALL; 429 ah->ani_function = ATH9K_ANI_ALL;
431 if (!AR_SREV_9300_20_OR_LATER(ah)) 430 if (!AR_SREV_9300_20_OR_LATER(ah))