ath10k: add quiet mode support for QCA6174/QCA9377
authorYu Wang <yyuwang@codeaurora.org>
Thu, 3 May 2018 06:01:25 +0000 (14:01 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 May 2018 09:00:33 +0000 (12:00 +0300)
commitcfb353c0dc058bc1619cc226d3cbbda1f360bdd3
tree82d4dd0127815d6405c9f08ec7ac9a608bf69b30
parente60a92590187d01f1c98254d2d7e8f613ebd31dd
ath10k: add quiet mode support for QCA6174/QCA9377

To enable thermal throttling for QCA6174 and QCA9377,
implement gen_pdev_set_quiet_mode for them.
With this change, quiet period for QCA6174/QCA9377 can
be also set/get via debugfs.
Usage:
To set quiet period:
 echo <period> > /sys/kernel/debug/ieee80211/phyX/ath10k/quiet_period
To get the current quiet period:
 cat /sys/kernel/debug/ieee80211/phyX/ath10k/quiet_period

This change has been verified with
QCA6174 hw3.2(fw: WLAN_RM.4.4.1-00102-QCARMSWP-1).

Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/wmi-tlv.c
drivers/net/wireless/ath/ath10k/wmi-tlv.h