iwlwifi: mvm: clear firmware running bit earlier
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Mar 2017 21:26:03 +0000 (22:26 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Jun 2017 20:34:27 +0000 (23:34 +0300)
commit771147b0676fb545b7fd268277452609bcaf9243
tree79381c5a0fba7abf92c1454ed925e8070437662b
parent65b280fe9bde124587f9ca290404515d52513b3f
iwlwifi: mvm: clear firmware running bit earlier

Clear the firmware running bit before flushing the FW (error) dump
work, because otherwise debugfs isn't blocked (previous patch) and
can cause a new work to be scheduled, which will then run after we
actually shut down the device, wreaking havoc. Clearing it ensures
that debugfs can't interfere anymore, and we can safely cancel or
flush the work struct.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c