diff options
author | Ashok Raj Nagarajan <arnagara@qti.qualcomm.com> | 2015-03-19 16:38:00 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2015-03-23 17:20:26 +0200 |
commit | b3e71d7a51486b523ffef0abd517cd25e4ec9588 (patch) | |
tree | eb5bbf63a32db34abd4422246fc6eafdaf64cb7a /drivers/net/wireless/ath/ath10k/mac.c | |
parent | 575f1c3d5c909d26e169da01eaed44f00f7eb88f (diff) | |
download | blackbird-op-linux-b3e71d7a51486b523ffef0abd517cd25e4ec9588.tar.gz blackbird-op-linux-b3e71d7a51486b523ffef0abd517cd25e4ec9588.zip |
ath10k: allow user to toggle ani_enable via debugfs
Now that ANI is enabled by default, allow user to disable or enable ANI feature
from debugfs
echo 0|1 > /sys/kernel/debug/ieee80211/phyX/ath10k/ani_enable
Signed-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 76a9bedf8ae2..73a9d3843e91 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3161,6 +3161,8 @@ static int ath10k_start(struct ieee80211_hw *hw) goto err_core_stop; } + ar->ani_enabled = true; + ar->num_started_vdevs = 0; ath10k_regd_update(ar); |