From 9b245d873917d1ef1479b6eb73b97da13dd5ec85 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 15:05:39 +0000 Subject: [PATCH] wifi: mt76: fix argument to ieee80211_is_first_frag() ieee80211_is_first_frag() operates on the seq_ctrl not the frame_control header field. Pass the correct one in; otherwise the results may vary. Sponsored by: The FreeBSD Foundation Fixes: 30ce7f4456ae4 ("mt76: validate rx CCMP PN") Link: https://cgit.freebsd.org/src/commit/sys/contrib/dev/mediatek/mt76/mac80211.c?id=c67fd35e58c6ee1e19877a7fe5998885683abedc Signed-off-by: Bjoern A. Zeeb Link: https://patch.msgid.link/83s4psnr-popo-8789-757o-npr2n9n7rs2o@SerrOFQ.bet Signed-off-by: Felix Fietkau --- mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac80211.c b/mac80211.c index 6edbe67..ef3ae34 100644 --- a/mac80211.c +++ b/mac80211.c @@ -811,7 +811,7 @@ mt76_check_ccmp_pn(struct sk_buff *skb) */ hdr = mt76_skb_get_hdr(skb); if (ieee80211_is_frag(hdr) && - !ieee80211_is_first_frag(hdr->frame_control)) + !ieee80211_is_first_frag(hdr->seq_ctrl)) return 0; }