]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: use tail MSDU to get MSDU information
authorKang Yang <quic_kangyang@quicinc.com>
Tue, 22 Oct 2024 11:08:30 +0000 (19:08 +0800)
committerJeff Johnson <quic_jjohnson@quicinc.com>
Wed, 23 Oct 2024 17:16:01 +0000 (10:16 -0700)
commitbba112e6ed9b65e8abf0e3f9ac65ee851b14a8cf
tree4634ddb837f873bc7a9fb58ae6e6c870c1339f6a
parent78d2405fd51b6919a5f645db41f3bc8b2267d426
wifi: ath12k: use tail MSDU to get MSDU information

When receiving a packet in monitor mode, hardware will fill status
information msdu_end for MSDUs. Then host can use these status
information to get specific information about this packet, such as
l3 offset, bandwidth, mcs, packet type.

If this packet is composed of multiple MSDUs, then hardware will only
fill status information for the last(tail) MSDU. At this time,
MSDU information is uncertain for others MSDUs. But current code use
the first MSDU in monitor mode, so will get the wrong information.

Fix it by getting msdu information from last(tail) msdu.

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-8-quic_kangyang@quicinc.com
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
drivers/net/wireless/ath/ath12k/dp_mon.c