ath12k_wifi7_dp_rx_process_received_packets() keeps one ieee80211_rx_status for all the MSDUs returned by a REO destination ring reap, and ath12k_dp_rx_deliver_msdu() copies it to the skb of each of them. ath12k_wifi7_dp_rx_h_mpdu() clears only some of the per-MPDU flags before filling the status again, but it also sets RX_FLAG_MIC_STRIPPED, RX_FLAG_ICV_STRIPPED and RX_FLAG_PN_VALIDATED, and ath12k_dp_rx_h_undecap() sets RX_FLAG_8023. Since none of these are cleared, they are inherited by the following MSDUs of the same reap. A group-addressed MSDU that follows a decrypted unicast MSDU can then reach mac80211 with RX_FLAG_PN_VALIDATED and make it skip the replay check of the group key. If an MSDU delivered as 802.3 is followed by an EAPOL or decrypted group-addressed MSDU, for which ath12k_dp_rx_h_undecap() rebuilds an 802.11 header, the stale RX_FLAG_8023 makes mac80211 handle it as an Ethernet frame: the frame is dropped, or its 802.11 header is parsed as an Ethernet header. This can stall 4-way handshakes and group rekeys, and lose decrypted broadcast traffic such as ARP, ND and DHCP. Clear these flags together with the other per-MPDU flags so that every MSDU starts with a clean receive status. RX_FLAG_8023 is set again by ath12k_dp_rx_h_undecap() when the frame is actually kept in 802.3 format. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3 Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Fixes: c4aa897fe234 ("wifi: ath12k: Handle DP_RX_DECAP_TYPE_8023 type in Rx path") Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c index a32c804403e8..12a3e6847d59 100644 --- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c +++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c @@ -386,11 +386,11 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev, is_decrypted = rx_info->is_decrypted; /* Clear per-MPDU flags while leaving per-PPDU flags intact */ - rx_status->flag &= ~(RX_FLAG_FAILED_FCS_CRC | - RX_FLAG_MMIC_ERROR | - RX_FLAG_DECRYPTED | - RX_FLAG_IV_STRIPPED | - RX_FLAG_MMIC_STRIPPED); + rx_status->flag &= ~(RX_FLAG_FAILED_FCS_CRC | RX_FLAG_MMIC_ERROR | + RX_FLAG_DECRYPTED | RX_FLAG_IV_STRIPPED | + RX_FLAG_MIC_STRIPPED | RX_FLAG_ICV_STRIPPED | + RX_FLAG_MMIC_STRIPPED | RX_FLAG_PN_VALIDATED | + RX_FLAG_8023); if (err_bitmap & HAL_RX_MPDU_ERR_FCS) rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; --- base-commit: 0ccc0a1ac5af4f7c3398c6130930235839ac4d10 change-id: 20261204-ath12k-fix-rx-status-df0b99d4e9de Best regards, -- Lorenzo Bianconi