Skip to content

Commit 63fe66f

Browse files
aloktiwagregkh
authored andcommitted
wifi: mt76: mt7996: fix FCS error flag check in RX descriptor
[ Upstream commit d8db561 ] The mt7996 driver currently checks the MT_RXD3_NORMAL_FCS_ERR bit in rxd1 whereas other Connac3-based drivers(mt7925) correctly check this bit in rxd3. Since the MT_RXD3_NORMAL_FCS_ERR bit is defined in the fourth RX descriptor word (rxd3), update mt7996 to use the proper descriptor field. This change aligns mt7996 with mt7925 and the rest of the Connac3 family. Fixes: 98686cd ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patch.msgid.link/20251013090826.753992-1-alok.a.tiwari@oracle.com Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4dd75a7 commit 63fe66f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/wireless/mediatek/mt76/mt7996

drivers/net/wireless/mediatek/mt76/mt7996/mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ mt7996_mac_fill_rx(struct mt7996_dev *dev, struct sk_buff *skb)
528528
!(csum_status & (BIT(0) | BIT(2) | BIT(3))))
529529
skb->ip_summed = CHECKSUM_UNNECESSARY;
530530

531-
if (rxd1 & MT_RXD3_NORMAL_FCS_ERR)
531+
if (rxd3 & MT_RXD3_NORMAL_FCS_ERR)
532532
status->flag |= RX_FLAG_FAILED_FCS_CRC;
533533

534534
if (rxd1 & MT_RXD1_NORMAL_TKIP_MIC_ERR)

0 commit comments

Comments
 (0)