iwlwifi: properly use delay option in dump trigger flow
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 13 Jan 2019 08:02:15 +0000 (10:02 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 14 Feb 2019 09:29:50 +0000 (11:29 +0200)
commit159133c8247295750320292ac7749e79603ef2e9
treed5c30e35b8f85f0f5bf52253df74e48fdddb2509
parent81edb6ad9399b1c3de30bee5fd3e885c32c665e6
iwlwifi: properly use delay option in dump trigger flow

Fix several issues related to dump delay:
1. In legacy dump trigger, use stop_delay field instead of trig_dis_ms.
2. ini delay is messured in usec so align both ini and legacy to usec.
3. schedule_delayed_work receives the delay value in jiffies so
translate the dump delay to jiffies.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: ea7cb8293874 ("iwlwifi: dbg: make trigger functions type agnostic")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c