summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/hal_tx.c
diff options
context:
space:
mode:
authorAnilkumar Kolli <akolli@codeaurora.org>2019-11-27 18:29:53 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-11-29 09:35:15 +0200
commit0f37fbf43c3fc39a6c49c5a27846df937d217356 (patch)
tree028892cf0fe2113e8ac885568e021f477ede74a7 /drivers/net/wireless/ath/ath11k/hal_tx.c
parent5b90fc760db5a969ed26d70f8e62c91915f012bd (diff)
ath11k: update tcl cmd descriptor parameters for STA mode
It is observed that ath11k STA mode UL throughput is low. This is due to packets delivered to FW from TCL instead of TQM. TCL AST search fail causes packet delivered to FW, fix this by properly configuring the TCL address search type and ast_hash. STA UL throughput is improved 10times with 11AC AP. Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/hal_tx.c')
-rw-r--r--drivers/net/wireless/ath/ath11k/hal_tx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath11k/hal_tx.c b/drivers/net/wireless/ath/ath11k/hal_tx.c
index bb27591023fe..cbe549798762 100644
--- a/drivers/net/wireless/ath/ath11k/hal_tx.c
+++ b/drivers/net/wireless/ath/ath11k/hal_tx.c
@@ -52,9 +52,9 @@ void ath11k_hal_tx_cmd_desc_setup(struct ath11k_base *ab, void *cmd,
FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) |
FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCRYPT_TYPE,
ti->encrypt_type) |
- FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ADDRX_EN,
- ti->addr_search_flags) |
- FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ADDRY_EN,
+ FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_SEARCH_TYPE,
+ ti->search_type) |
+ FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ADDR_EN,
ti->addr_search_flags) |
FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_CMD_NUM,
ti->meta_data_flags);