iwlwifi: dbg_ini: fix infinite time ignore consecutive dumps
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Tue, 29 Jan 2019 07:51:44 +0000 (09:51 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 20 Feb 2019 18:47:59 +0000 (20:47 +0200)
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: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: fe1b7d6c2888 ("iwlwifi: add support for triggering ini triggers")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c

index b189a60..5e5c4e8 100644 (file)
@@ -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: