]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iwlwifi: mvm: clear IN_HW_RESTART flag on stop()
authorEliad Peller <eliad@wizery.com>
Thu, 4 Dec 2014 08:27:20 +0000 (10:27 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Dec 2014 08:20:29 +0000 (10:20 +0200)
commit0a79a0c011cb291675e3b80760a452fcba5c59d9
tree00c7e3946ccba6cdc186e86790fd8dd37f181a8c
parent70e71ca0af244f48a5dcf56dc435243792e3a495
iwlwifi: mvm: clear IN_HW_RESTART flag on stop()

On stop(), we already cleared our internal state,
and the restart_complete() callback won't be
called, so simply clear the IN_HW_RESTART flag.

Keeping the flag might result in invalid state
on the next start(), preventing the driver starting
properly.

Additionally, don't take IWL_MVM_REF_UCODE_DOWN on stop()
if hw restart was requested, as the ref was already
taken in this case.

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