diff options
author | Shahar S Matityahu <shahar.s.matityahu@intel.com> | 2019-07-24 18:52:23 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-10-25 10:09:48 +0300 |
commit | 068893b7a28f0728fc6da17906df95f3bb6f9aa3 (patch) | |
tree | 723da1a578e86a154973587d94e8d7e38f74e114 /drivers/net/wireless/intel/iwlwifi/iwl-trans.h | |
parent | 60e8abd9d3e91916a25783a3e62980083b1acfaf (diff) | |
download | linux-068893b7a28f0728fc6da17906df95f3bb6f9aa3.tar.xz |
iwlwifi: dbg_ini: support domain changing via debugfs
Allow to change or read the debug domain bitmap at runtime via
fw_dbg_domain debugfs.
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-trans.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-trans.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-trans.h b/drivers/net/wireless/intel/iwlwifi/iwl-trans.h index 32e522991068..8cadad7364ac 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-trans.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-trans.h @@ -1249,6 +1249,11 @@ static inline void iwl_trans_fw_error(struct iwl_trans *trans) iwl_op_mode_nic_error(trans->op_mode); } +static inline bool iwl_trans_fw_running(struct iwl_trans *trans) +{ + return trans->state == IWL_TRANS_FW_ALIVE; +} + static inline void iwl_trans_sync_nmi(struct iwl_trans *trans) { if (trans->ops->sync_nmi) |