wifi: ath12k: fix incorrect handling of AMSDU frames
authorHarshitha Prem <quic_hprem@quicinc.com>
Mon, 20 Mar 2023 09:04:00 +0000 (14:34 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 24 Mar 2023 14:48:57 +0000 (16:48 +0200)
commit392b6b76fd3940ba9978ecd8fe30d9ed979d3bf7
tree6318f356a94cc91b84cb65ac08e044382317355a
parente93bbd65547ea8073b707c9034c3f051f8018614
wifi: ath12k: fix incorrect handling of AMSDU frames

When a data traffic with size greater than 1500 is initiated,
say size 65500, it is sent as a set of AMSDUs (3 MSDUs)
in a MPDU.

These AMSDUs are incorrectly classified as multicast
and peer id gets changed, except for first msdu,
because of mcast_bcast bit derived from rx_desc
for every msdu received.

The mcast_bcast bit in rx_desc is only valid for
first msdu. Hence, add changes to derive mcast_bcast
only if it is a first msdu.

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

Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230320090400.30027-1-quic_hprem@quicinc.com
drivers/net/wireless/ath/ath12k/dp_rx.c