ath12k_wifi7_dp_rx_process_received_packets() keeps one ieee80211_rx_status for all MSDUs that a REO reap returns, and ath12k_wifi7_dp_rx_h_mpdu() fills it for each of them. As in ath11k, it clears RX_FLAG_DECRYPTED, RX_FLAG_IV_STRIPPED and RX_FLAG_MMIC_STRIPPED of the MSDU before, but not RX_FLAG_MIC_STRIPPED, RX_FLAG_ICV_STRIPPED and RX_FLAG_PN_VALIDATED, which it also sets for a decrypted MSDU. ath12k_get_dot11_hdr_from_rx_desc() drops RX_FLAG_PN_VALIDATED from a group-addressed MSDU that was decapped to Ethernet, but a decrypted group-addressed MSDU in native Wi-Fi decap that follows a decrypted unicast MSDU in one reap would reach mac80211 with RX_FLAG_PN_VALIDATED, and ieee80211_crypto_ccmp_decrypt() and ieee80211_crypto_gcmp_decrypt() then skip the replay check of the group key. Whether a reap holds such a pair depends, as in ath11k, on whether the firmware delivers group-addressed MSDUs through the REO destination ring. Clear the three flags with the other per-MPDU flags. Found by an LLM review (Claude) of the code. Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Signed-off-by: Julius Bairaktaris --- v2: discovery line reworded. drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c index fa591a03ecef..e37353445749 100644 --- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c +++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c @@ -414,7 +414,10 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev, RX_FLAG_MMIC_ERROR | RX_FLAG_DECRYPTED | RX_FLAG_IV_STRIPPED | - RX_FLAG_MMIC_STRIPPED); + RX_FLAG_MMIC_STRIPPED | + RX_FLAG_MIC_STRIPPED | + RX_FLAG_ICV_STRIPPED | + RX_FLAG_PN_VALIDATED); if (err_bitmap & HAL_RX_MPDU_ERR_FCS) rx_status->flag |= RX_FLAG_FAILED_FCS_CRC; -- 2.53.0