]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ath11k: set queue_len to 4096
authorJohn Crispin <john@phrozen.org>
Tue, 11 Feb 2020 12:26:05 +0000 (13:26 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Mar 2020 06:37:06 +0000 (08:37 +0200)
The driver currently does not use wake_txq_queue. This leads to the
tx_queue_len being defaulted to 1000. Setting this parameter will
change the queue_len to 4096 which is more fitting for HE.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/hw.h
drivers/net/wireless/ath/ath11k/mac.c

index dd39333ec0ea7c69e9fe3eff533a073f7cf90ea3..9973477ae3731dd2c7a6011bb5edd935ba4877f0 100644 (file)
@@ -62,6 +62,7 @@
 #define TARGET_RX_BATCHMODE            1
 
 #define ATH11K_HW_MAX_QUEUES           4
+#define ATH11K_QUEUE_LEN               4096
 
 #define ATH11k_HW_RATECODE_CCK_SHORT_PREAM_MASK  0x4
 
index c02e4a3eaef2656ccfdd7a5e37d0eab875c68173..61fd81d63efc10d26e85b764313e632684170526 100644 (file)
@@ -5797,6 +5797,7 @@ static int __ath11k_mac_register(struct ath11k *ar)
        ar->hw->wiphy->max_ap_assoc_sta = ar->max_num_stations;
 
        ar->hw->queues = ATH11K_HW_MAX_QUEUES;
+       ar->hw->wiphy->tx_queue_len = ATH11K_QUEUE_LEN;
        ar->hw->offchannel_tx_hw_queue = ATH11K_HW_MAX_QUEUES - 1;
        ar->hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;