]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: fix peer metadata parsing
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Mon, 24 Jun 2024 14:54:18 +0000 (20:24 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 26 Jun 2024 15:42:25 +0000 (18:42 +0300)
commit1eeafd64c7b455381b77c546e41bc267e13e2809
tree9b83291caed0ad4ffe7572d31ec2254fb3e12234
parent2c7857677d695166e913123b23ed7e55d80f72be
wifi: ath12k: fix peer metadata parsing

Currently, the Rx data path only supports parsing peer metadata of version
zero. However, the QCN9274 platform configures the peer metadata version
as V1B. When V1B peer metadata is parsed using the version zero logic,
invalid data is populated, causing valid packets to be dropped. To address
this issue, refactor the peer metadata version and add the version based
parsing to populate the data from peer metadata correctly.

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

Fixes: 287033810990 ("wifi: ath12k: add support for peer meta data version")
Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240624145418.2043461-1-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/dp.h
drivers/net/wireless/ath/ath12k/dp_rx.c
drivers/net/wireless/ath/ath12k/hal_desc.h
drivers/net/wireless/ath/ath12k/hw.h
drivers/net/wireless/ath/ath12k/wmi.c
drivers/net/wireless/ath/ath12k/wmi.h