ath10k: enable sta idle power save
authorGovind Singh <govinds@codeaurora.org>
Tue, 17 Apr 2018 12:07:01 +0000 (17:37 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 06:04:30 +0000 (09:04 +0300)
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>
drivers/net/wireless/ath/ath10k/mac.c

index c71cf5b..3d7119a 100644 (file)
@@ -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);
 
        /*