iwlwifi: mvm: make collecting fw debug data optional
[deliverable/linux.git] / drivers / net / wireless / intel / iwlwifi / mvm / fw-dbg.c
index 0813f8184e10cbcb2472910847b789e7d57f454d..94ec3f0c15cf983231468c2e2a557bd7745aa1f1 100644 (file)
@@ -435,6 +435,10 @@ void iwl_mvm_fw_error_dump(struct iwl_mvm *mvm)
        bool monitor_dump_only = false;
        int i;
 
+       if (!IWL_MVM_COLLECT_FW_ERR_DUMP &&
+           !mvm->trans->dbg_dest_tlv)
+               return;
+
        lockdep_assert_held(&mvm->mutex);
 
        /* there's no point in fw dump if the bus is dead */
This page took 0.025328 seconds and 5 git commands to generate.