iwlwifi: dbg: remove iwl_fw_cancel_dumps function
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Tue, 9 Jul 2019 09:27:07 +0000 (12:27 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Sep 2019 12:52:07 +0000 (15:52 +0300)
commit787350ef8d8044754582e79d28a0d5ef4df08ba4
tree3eaa4b9824e3a21e72e471e68f10f023e10342f3
parent9b1bcfcc6e068ab2106749bf8faffb8a7d73b976
iwlwifi: dbg: remove iwl_fw_cancel_dumps function

Use cancel_delayed_work_sync on the dump workers only in case of
unloading the op mode. In any other case use iwl_fw_flush_dumps or
iwl_fw_dbg_stop_sync (depends if the op mode mutex is held or not).
This way, the driver will wait until debug data is collected in all
cases but op mode unloading.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.h
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c