Skip to content

Commit 02b682d

Browse files
abatyievKalle Valo
authored andcommitted
wifi: iwlegacy: do not skip frames with bad FCS
Monitor/sniffer mode benefits from all types of frames, even if FCS check fails. But we must mark frames as such. Tested on iwl3945 only. Signed-off-by: Andrii Batyiev <batyiev@gmail.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20240509101140.32664-1-batyiev@gmail.com
1 parent 83127ec commit 02b682d

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-
return;
569+
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
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-
return;
667+
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
668668
}
669669

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

0 commit comments

Comments
 (0)