diff options
| author | Rotem Kerem <[email protected]> | 2025-07-10 18:28:25 +0000 |
|---|---|---|
| committer | Miri Korenblit <[email protected]> | 2025-07-11 15:28:31 +0000 |
| commit | 11c5cc9ec6d9e09cd052f5a75574f5989b37f16c (patch) | |
| tree | df46677159610cf120f054961e918ca20b3fd91f /drivers/net/wireless/intel/iwlwifi/fw/dbg.c | |
| parent | wifi: iwlwifi: add iwl_trans_device_enabled() API (diff) | |
| download | kernel-11c5cc9ec6d9e09cd052f5a75574f5989b37f16c.tar.gz kernel-11c5cc9ec6d9e09cd052f5a75574f5989b37f16c.zip | |
wifi: iwlwifi: add iwl_trans_is_dead() API
Add iwl_trans_is_dead() function to be called by the op modes instead
of directly checking the trans status bits. This hides the trans
internal implementation details from callers.
Signed-off-by: Rotem Kerem <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20250710212632.cd89d8013261.I214b7ffbabc393593fb57831d61d1a9ffa318a1e@changeid
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/dbg.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index ed72199c0b21..2879be4b8fcb 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -3186,7 +3186,7 @@ static void iwl_fw_dbg_collect_sync(struct iwl_fw_runtime *fwrt, u8 wk_idx) } /* there's no point in fw dump if the bus is dead */ - if (test_bit(STATUS_TRANS_DEAD, &fwrt->trans->status)) { + if (iwl_trans_is_dead(fwrt->trans)) { IWL_ERR(fwrt, "Skip fw error dump since bus is dead\n"); goto out; } |
