]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Send PPDU_STATS_CFG with proper pdev mask to firmware
authorRameshkumar Sundaram <ramess@codeaurora.org>
Wed, 10 Nov 2021 15:10:48 +0000 (17:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 12 Nov 2021 08:01:15 +0000 (10:01 +0200)
commit286264cfb61e0a923ae2c0a75ad11b408855281a
tree2abd4e56c45c56cc929a7eb8b77c16c8c3dfff67
parentc59702cb8eeb2557b0b4a8402ad67601d85ea14f
ath11k: Send PPDU_STATS_CFG with proper pdev mask to firmware

HTT_PPDU_STATS_CFG_PDEV_ID bit mask for target FW PPDU stats request message
was set as bit 8 to 15. Bit 8 is reserved for soc stats and pdev id starts from
bit 9. Hence change the bitmask as bit 9 to 15 and fill the proper pdev id in
the request message.

In commit cf1ce93ed628 ("ath11k: add packet log support for QCA6390"), both
HTT_PPDU_STATS_CFG_PDEV_ID and pdev_mask were changed, but this pdev_mask
calculation is not valid for platforms which has multiple pdevs with 1 rxdma
per pdev, as this is writing same value(i.e. 2) for all pdevs.  Hence fixed it
to consider pdev_idx as well, to make it compatible for both single and multi
pd cases.

Tested on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01092-QCAHKSWPL_SILICONZ-1
Tested on: IPQ6018 hw1.0 WLAN.HK.2.5.0.1-01067-QCAHKSWPL_SILICONZ-1

Fixes: cf1ce93ed628 ("ath11k: add packet log support for QCA6390")
Co-developed-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
Signed-off-by: Rameshkumar Sundaram <ramess@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210721212029.142388-10-jouni@codeaurora.org
drivers/net/wireless/ath/ath11k/dp.h
drivers/net/wireless/ath/ath11k/dp_tx.c