]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Revert "wifi: iwlegacy: do not skip frames with bad FCS"
authorKalle Valo <kvalo@kernel.org>
Tue, 12 Nov 2024 14:24:19 +0000 (16:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:25 +0000 (13:53 +0100)
[ Upstream commit 11597043d74809daf5d14256b96d6781749b3f82 ]

This reverts commit 02b682d54598f61cbb7dbb14d98ec1801112b878.

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: 02b682d54598 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlegacy/3945.c
drivers/net/wireless/intel/iwlegacy/4965-mac.c

index 1fab7849f56d1a66bc242a4cae087f293d20a769..a773939b8c2aac4a6eca6b701bc569062bdf4630 100644 (file)
@@ -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);
-               rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
+               return;
        }
 
        /* Convert 3945's rssi indicator to dBm */
index 1600c344edbb2005117213925f6c8b53058a010b..11c15e0bc779a48e61a28f24b8701dc562971ddb 100644 (file)
@@ -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));
-               rx_status.flag |= RX_FLAG_FAILED_FCS_CRC;
+               return;
        }
 
        /* This will be used in several places later */