wifi: ath12k: fix A-MSDU indication in monitor mode
authorKang Yang <quic_kangyang@quicinc.com>
Tue, 22 Oct 2024 11:08:31 +0000 (19:08 +0800)
committerJeff Johnson <quic_jjohnson@quicinc.com>
Wed, 23 Oct 2024 17:16:01 +0000 (10:16 -0700)
commitf7b982d13df72dbf8c1f3f98fadc9d9155608ecc
treed156aa4e4799d76736c793f23c7e1c1a15bb8661
parentbba112e6ed9b65e8abf0e3f9ac65ee851b14a8cf
wifi: ath12k: fix A-MSDU indication in monitor mode

In monitor mode, host will reap MSDUs and then the MSDUs with same PPDU
ID will be aggregated into an A-MSDU in ath12k_dp_mon_rx_merg_msdus().

However, ath12k_dp_mon_rx_merg_msdus() doesn't calculate the total
length of the A-MSDU. This causes Wireshark to display the A-MSDU
incorrectly.

Therefore, need to add calculation of the A-MSDU length.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://patch.msgid.link/20241022110831.974-9-quic_kangyang@quicinc.com
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
drivers/net/wireless/ath/ath12k/dp_mon.c