summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2018-04-17 17:37:01 +0530
committerKalle Valo <kvalo@codeaurora.org>2018-04-24 09:04:30 +0300
commitd5cded16fdc02a31f9f73d899329896218c594aa (patch)
tree193ff04eb79130c64cbfbc204a70fa0797ceea7e
parent4945af5b264fbdbdb5a9021b8a6a179d0c7a33b2 (diff)
downloadlinux-stable-d5cded16fdc02a31f9f73d899329896218c594aa.tar.gz
linux-stable-d5cded16fdc02a31f9f73d899329896218c594aa.tar.bz2
linux-stable-d5cded16fdc02a31f9f73d899329896218c594aa.zip
ath10k: enable sta idle power save
Enable sta power save in fw for the targets that supports idle power save. The idle ps enable command will be ignored by the firmware which does not support this feature. Signed-off-by: Govind Singh <govinds@codeaurora.org> Signed-off-by: Rakesh Pillai <pillair@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index c71cf5b81385..3d7119ad7c7a 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -4679,6 +4679,13 @@ static int ath10k_start(struct ieee80211_hw *hw)
}
}
+ param = ar->wmi.pdev_param->idle_ps_config;
+ ret = ath10k_wmi_pdev_set_param(ar, param, 1);
+ if (ret && ret != -EOPNOTSUPP) {
+ ath10k_warn(ar, "failed to enable idle_ps_config: %d\n", ret);
+ goto err_core_stop;
+ }
+
__ath10k_set_antenna(ar, ar->cfg_tx_chainmask, ar->cfg_rx_chainmask);
/*