aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-12-13 16:38:32 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-12-18 19:27:22 +0200
commit6bfebd4bf93928958cd57df9a8ccd5862f88468c (patch)
tree3a98fe84eaeee5e5d33f4625b4cb41f51baa350a /drivers/net/wireless
parentath11k: add wmi helper for turning STA PS on/off (diff)
downloadlinux-dev-6bfebd4bf93928958cd57df9a8ccd5862f88468c.tar.xz
linux-dev-6bfebd4bf93928958cd57df9a8ccd5862f88468c.zip
ath11k: disable PS for STA interfaces by default upon bringup
After applying this setting the TX performance issue of STA interfaces is gone and we can see TX performance go up to ~900mbit on HE80. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath11k/mac.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 65f6a2585577..f5f7d8188e6e 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -4172,6 +4172,13 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw,
arvif->vdev_id, ret);
goto err_peer_del;
}
+
+ ret = ath11k_wmi_pdev_set_ps_mode(ar, arvif->vdev_id, false);
+ if (ret) {
+ ath11k_warn(ar->ab, "failed to disable vdev %d ps mode: %d\n",
+ arvif->vdev_id, ret);
+ goto err_peer_del;
+ }
break;
default:
break;