Skip to content

Commit c7f50d0

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: iwlwifi: don't warn when if there is a FW error
iwl_trans_reclaim is warning if it is called when the FW is not alive. But if it is called when there is a pending restart, i.e. after a FW error, there is no need to warn, instead - return silently. Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250308231427.ba3d90b22c25.I9332506af1997faefcf0bdb51d98d5e874051722@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 96a3598 commit c7f50d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-trans.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Copyright (C) 2015 Intel Mobile Communications GmbH
44
* Copyright (C) 2016-2017 Intel Deutschland GmbH
5-
* Copyright (C) 2019-2021, 2023-2024 Intel Corporation
5+
* Copyright (C) 2019-2021, 2023-2025 Intel Corporation
66
*/
77
#include <linux/kernel.h>
88
#include <linux/bsearch.h>
@@ -639,6 +639,9 @@ IWL_EXPORT_SYMBOL(iwl_trans_tx);
639639
void iwl_trans_reclaim(struct iwl_trans *trans, int queue, int ssn,
640640
struct sk_buff_head *skbs, bool is_flush)
641641
{
642+
if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status)))
643+
return;
644+
642645
if (WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
643646
"bad state = %d\n", trans->state))
644647
return;

0 commit comments

Comments
 (0)