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
This commit is contained in:
parent
83127ecada
commit
02b682d545
@ -566,7 +566,7 @@ il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
|
||||
if (!(rx_end->status & RX_RES_STATUS_NO_CRC32_ERROR) ||
|
||||
!(rx_end->status & RX_RES_STATUS_NO_RXE_OVERFLOW)) {
|
||||
D_RX("Bad CRC or FIFO: 0x%08X.\n", rx_end->status);
|
||||
return;
|
||||
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
|
||||
}
|
||||
|
||||
/* Convert 3945's rssi indicator to dBm */
|
||||
|
@ -664,7 +664,7 @@ il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
|
||||
if (!(rx_pkt_status & RX_RES_STATUS_NO_CRC32_ERROR) ||
|
||||
!(rx_pkt_status & RX_RES_STATUS_NO_RXE_OVERFLOW)) {
|
||||
D_RX("Bad CRC or FIFO: 0x%08X.\n", le32_to_cpu(rx_pkt_status));
|
||||
return;
|
||||
rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
|
||||
}
|
||||
|
||||
/* This will be used in several places later */
|
||||
|
Loading…
x
Reference in New Issue
Block a user