ath11k: Fix mon status ring rx tlv processing
authorAnilkumar Kolli <akolli@codeaurora.org>
Mon, 22 Nov 2021 11:13:58 +0000 (13:13 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 22 Nov 2021 14:35:39 +0000 (16:35 +0200)
commit09f16f7390f302937409738d6cb6ce99b265f455
treed13aba5a562c6a4a96bd7f050340c6c33223c3f0
parent46e46db313a2bf3c48cac4eb8bdb613b762f301b
ath11k: Fix mon status ring rx tlv processing

In HE monitor capture, HAL_TLV_STATUS_PPDU_DONE is received
on processing multiple skb. Do not clear the ppdu_info
till the HAL_TLV_STATUS_PPDU_DONE is received.

This fixes below warning and packet drops in monitor mode.
 "Rate marked as an HE rate but data is invalid: MCS: 6, NSS: 0"
 WARNING: at
 PC is at ieee80211_rx_napi+0x624/0x840 [mac80211]

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-01693-QCAHKSWPL_SILICONZ-1

Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1637249433-10316-1-git-send-email-akolli@codeaurora.org
drivers/net/wireless/ath/ath11k/dp_rx.c