ath11k: disable PS for STA interfaces by default upon bringup
authorJohn Crispin <john@phrozen.org>
Fri, 13 Dec 2019 15:38:32 +0000 (16:38 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 17:27:22 +0000 (19:27 +0200)
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>
drivers/net/wireless/ath/ath11k/mac.c

index 65f6a25855772684bf9ff45e220620ae0f5e0bc3..f5f7d8188e6eb2358f1d7628d5c76046c2fbbf3f 100644 (file)
@@ -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;