Skip to content

Commit 1159704

Browse files
author
Kalle Valo
committed
Revert "wifi: iwlegacy: do not skip frames with bad FCS"
This reverts commit 02b682d. Alf reports that this commit causes the connection to eventually die on iwl4965. The reason is that rx_status.flag is zeroed after RX_FLAG_FAILED_FCS_CRC is set and mac80211 doesn't know the received frame is corrupted. Fixes: 02b682d ("wifi: iwlegacy: do not skip frames with bad FCS") Reported-by: Alf Marius <post@alfmarius.net> Closes: https://lore.kernel.org/r/60f752e8-787e-44a8-92ae-48bdfc9b43e7@app.fastmail.com/ Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://patch.msgid.link/20241112142419.1023743-1-kvalo@kernel.org
1 parent f2aadc7 commit 1159704

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/wireless/intel/iwlegacy/3945.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
566566
if (!(rx_end->status & RX_RES_STATUS_NO_CRC32_ERROR) ||
567567
!(rx_end->status & RX_RES_STATUS_NO_RXE_OVERFLOW)) {
568568
D_RX("Bad CRC or FIFO: 0x%08X.\n", rx_end->status);
569-
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
569+
return;
570570
}
571571

572572
/* Convert 3945's rssi indicator to dBm */

drivers/net/wireless/intel/iwlegacy/4965-mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
664664
if (!(rx_pkt_status & RX_RES_STATUS_NO_CRC32_ERROR) ||
665665
!(rx_pkt_status & RX_RES_STATUS_NO_RXE_OVERFLOW)) {
666666
D_RX("Bad CRC or FIFO: 0x%08X.\n", le32_to_cpu(rx_pkt_status));
667-
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
667+
return;
668668
}
669669

670670
/* This will be used in several places later */

0 commit comments

Comments
 (0)