iwlwifi: mvm: fix wowlan resume failed to load INIT ucode
authorMatt Chen <matt.chen@intel.com>
Mon, 28 Aug 2017 06:57:54 +0000 (14:57 +0800)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 8 Sep 2017 08:25:31 +0000 (11:25 +0300)
commit59cd827f26019ac790b2f34cbad478037f51c570
treed7e5443ff2fef49268307fa6343d1b215bfd1455
parent2eabc84d2f8e4f36d3719eeb6a330e10c46c8da7
iwlwifi: mvm: fix wowlan resume failed to load INIT ucode

If we set disconnect on wowlan and run suspend/resume, will run
into:
...snipped
iwlwifi 0000:01:00.0: Failed to load firmware chunk!
iwlwifi 0000:01:00.0: Could not load the [0] uCode section
iwlwifi 0000:01:00.0: Failed to start INIT ucode: -110
iwlwifi 0000:01:00.0: Failed to run INIT ucode: -110
iwlwifi 0000:01:00.0: Failed to start RT ucode: -110

It is because we still keep IWL_MVM_STATUS_IN_HW_RESTART in
__iwl_mvm_resume.  When mac80211 starts the device as
__iwl_mvm_mac_start(), we will miss iwl_mvm_restart_cleanup(mvm).

Signed-off-by: Matt Chen <matt.chen@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c