Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00276722 authored by Shahar S Matityahu's avatar Shahar S Matityahu Committed by Luca Coelho
Browse files

iwlwifi: dbg_ini: fix infinite time ignore consecutive dumps



The driver sets ignore_consec to -1 which is 0xffffffff in u32
so when iwl_fw_ini_trigger_on is called, it will always return false
and each trigger could be used only once.

Solve this by removing the assignment to -1.

Signed-off-by: default avatarShahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: fe1b7d6c ("iwlwifi: add support for triggering ini triggers")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent f50d693b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2093,8 +2093,6 @@ static void iwl_fw_dbg_update_triggers(struct iwl_fw_runtime *fwrt,
		/* Since zero means infinity - just set to -1 */
		if (!le32_to_cpu(active->trig->occurrences))
			active->trig->occurrences = cpu_to_le32(-1);
		if (!le32_to_cpu(active->trig->ignore_consec))
			active->trig->ignore_consec = cpu_to_le32(-1);

		active->active = true;
next: