linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ath10k: enable Adaptive Noise Immunity (ANI) by default
@ 2015-03-19 11:07 Ashok Raj Nagarajan
  2015-03-19 11:08 ` [PATCH v2 2/2] ath10k: allow user to toggle ani_enable via debugfs Ashok Raj Nagarajan
  2015-03-23 15:25 ` [PATCH v2 1/2] ath10k: enable Adaptive Noise Immunity (ANI) by default Kalle Valo
  0 siblings, 2 replies; 4+ messages in thread
From: Ashok Raj Nagarajan @ 2015-03-19 11:07 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Ashok Raj Nagarajan

ANI helps to improve connectvity and performance in a noisy environment.
Enabling this feature would help the user experience a better and stable
wireless connection in a noisy environmnet. This feature is currently not
enabled for ath10k. Enable this feature by default.

Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
---
v2:
Update commit log (Kalle Valo)

 drivers/net/wireless/ath/ath10k/mac.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 0f39af7..380d4b1 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -2896,6 +2896,14 @@ static int ath10k_start(struct ieee80211_hw *hw)
 		goto err_core_stop;
 	}
 
+	ret = ath10k_wmi_pdev_set_param(ar,
+					ar->wmi.pdev_param->ani_enable, 1);
+	if (ret) {
+		ath10k_warn(ar, "failed to enable ani by default: %d\n",
+			    ret);
+		goto err_core_stop;
+	}
+
 	ar->num_started_vdevs = 0;
 	ath10k_regd_update(ar);
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-23 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 11:07 [PATCH v2 1/2] ath10k: enable Adaptive Noise Immunity (ANI) by default Ashok Raj Nagarajan
2015-03-19 11:08 ` [PATCH v2 2/2] ath10k: allow user to toggle ani_enable via debugfs Ashok Raj Nagarajan
     [not found]   ` <550BE826.70608@aoifes.com>
2015-03-23  7:24     ` Ashok Raj Nagarajan
2015-03-23 15:25 ` [PATCH v2 1/2] ath10k: enable Adaptive Noise Immunity (ANI) by default Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).