|
@@ -767,7 +767,6 @@ struct iwl_mvm {
|
|
|
struct iwl_mvm_vif *bf_allowed_vif;
|
|
|
|
|
|
enum iwl_ucode_type cur_ucode;
|
|
|
- bool ucode_loaded;
|
|
|
bool hw_registered;
|
|
|
bool calibrating;
|
|
|
u32 error_event_table[2];
|
|
@@ -1088,6 +1087,7 @@ enum iwl_mvm_status {
|
|
|
IWL_MVM_STATUS_ROC_AUX_RUNNING,
|
|
|
IWL_MVM_STATUS_D3_RECONFIG,
|
|
|
IWL_MVM_STATUS_DUMPING_FW_LOG,
|
|
|
+ IWL_MVM_STATUS_FIRMWARE_RUNNING,
|
|
|
};
|
|
|
|
|
|
/* Keep track of completed init configuration */
|
|
@@ -1111,7 +1111,7 @@ static inline bool iwl_mvm_is_radio_hw_killed(struct iwl_mvm *mvm)
|
|
|
|
|
|
static inline bool iwl_mvm_firmware_running(struct iwl_mvm *mvm)
|
|
|
{
|
|
|
- return mvm->ucode_loaded;
|
|
|
+ return test_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status);
|
|
|
}
|
|
|
|
|
|
/* Must be called with rcu_read_lock() held and it can only be
|
|
@@ -1771,7 +1771,7 @@ static inline void iwl_mvm_stop_device(struct iwl_mvm *mvm)
|
|
|
{
|
|
|
if (!iwl_mvm_has_new_tx_api(mvm))
|
|
|
iwl_free_fw_paging(mvm);
|
|
|
- mvm->ucode_loaded = false;
|
|
|
+ clear_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status);
|
|
|
iwl_trans_stop_device(mvm->trans);
|
|
|
}
|
|
|
|