Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5939e8c authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Kalle Valo
Browse files

ath9k: enable per-packet TPC on AR9002 based chips



Enable per-packet TPC on AR9002 based chips by default

Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 9ddad58b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1078,11 +1078,6 @@ static ssize_t write_file_tpc(struct file *file, const char __user *user_buf,
	ssize_t len;
	bool tpc_enabled;

	if (!AR_SREV_9300_20_OR_LATER(ah)) {
		/* ar9002 does not support TPC for the moment */
		return -EOPNOTSUPP;
	}

	len = min(count, sizeof(buf) - 1);
	if (copy_from_user(buf, user_buf, len))
		return -EFAULT;
+1 −2
Original line number Diff line number Diff line
@@ -424,8 +424,7 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
	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->tpc_enabled = true;

	ah->ani_function = ATH9K_ANI_ALL;
	if (!AR_SREV_9300_20_OR_LATER(ah))