Skip to content

Commit e93b18d

Browse files
Bjoern A. Zeebgregkh
authored andcommitted
wifi: mt76: fix argument to ieee80211_is_first_frag()
[ Upstream commit 5832743 ] 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: 30ce7f4 ("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 <bz@FreeBSD.org> Link: https://patch.msgid.link/83s4psnr-popo-8789-757o-npr2n9n7rs2o@SerrOFQ.bet Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 66f21ee commit e93b18d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/wireless/mediatek/mt76/mac80211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ mt76_check_ccmp_pn(struct sk_buff *skb)
11371137
* All further fragments will be validated by mac80211 only.
11381138
*/
11391139
if (ieee80211_is_frag(hdr) &&
1140-
!ieee80211_is_first_frag(hdr->frame_control))
1140+
!ieee80211_is_first_frag(hdr->seq_ctrl))
11411141
return;
11421142
}
11431143

0 commit comments

Comments
 (0)