iwlwifi: mvm: take IWL_MVM_REF_UCODE_DOWN before restarting hw
authorEliad Peller <eliad@wizery.com>
Tue, 3 Mar 2015 10:03:20 +0000 (12:03 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 19 Mar 2015 13:06:28 +0000 (15:06 +0200)
commit48e67751681654efe9743be64f18f1f08d1dbef2
tree2a8e944af43bd68cec134b3a378e97c3e41f933b
parent28c8c19a0004a74cd6303fa088b33212d0d80536
iwlwifi: mvm: take IWL_MVM_REF_UCODE_DOWN before restarting hw

we unref IWL_MVM_REF_UCODE_DOWN on iwl_mvm_restart_complete().

Usually, the restart is initiated by iwl_mvm_nic_restart(),
which takes the reference before restarting the hw.

However, in D3 flow we might call ieee80211_restart_hw()
directly (in case of suspend error and on d3_test-resume),
which without taking the ref first. fix it.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c