wifi: ath12k: fix desc address calculation in wbm tx completion
authorThiraviyam Mariyappan <quic_tmariyap@quicinc.com>
Mon, 11 Mar 2024 18:07:08 +0000 (23:37 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 20 Mar 2024 10:06:10 +0000 (12:06 +0200)
commita49732b1f1f8128608b1192c562880dd29037c06
tree8b49f126b42fb58f2a7695e4cbeb114c9cf90bdf
parentf8c0799b2428a2599a540b0ba1e180a6e3460699
wifi: ath12k: fix desc address calculation in wbm tx completion

In tx completion, status desc is obtained from offsetting the address
from wbm ring. Having HTT_TX_WBM_COMP_STATUS_OFFSET(8) and reserved 8
bytes in status desc offsets the address twice and read the values
from the incorrect address. Hence, remove the
HTT_TX_WBM_COMP_STATUS_OFFSET from wbm completion address calculation.

Also this patch is applicable for WCN7850.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Thiraviyam Mariyappan <quic_tmariyap@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240311180708.9334-1-quic_tmariyap@quicinc.com
drivers/net/wireless/ath/ath12k/dp.h
drivers/net/wireless/ath/ath12k/dp_tx.c