|
@@ -595,6 +595,12 @@ static void iwl_mvm_dump_lmac_error_log(struct iwl_mvm *mvm, u32 base)
|
|
|
|
|
|
void iwl_mvm_dump_nic_error_log(struct iwl_mvm *mvm)
|
|
void iwl_mvm_dump_nic_error_log(struct iwl_mvm *mvm)
|
|
{
|
|
{
|
|
|
|
+ if (!test_bit(STATUS_DEVICE_ENABLED, &mvm->trans->status)) {
|
|
|
|
+ IWL_ERR(mvm,
|
|
|
|
+ "DEVICE_ENABLED bit is not set. Aborting dump.\n");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
iwl_mvm_dump_lmac_error_log(mvm, mvm->error_event_table[0]);
|
|
iwl_mvm_dump_lmac_error_log(mvm, mvm->error_event_table[0]);
|
|
|
|
|
|
if (mvm->error_event_table[1])
|
|
if (mvm->error_event_table[1])
|