]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
iwlwifi: mvm: update ucode status before stopping device
authorChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Mon, 22 Feb 2016 08:21:41 +0000 (10:21 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 2 Mar 2016 06:56:58 +0000 (08:56 +0200)
commitfcb6b92a682fe5032fdc31af7f8ed86f1dabb1e2
tree93b7d6182920c18848f5b091b91d1e42fbb0bb8b
parent3d2d442236b3f87cf9ff70c4252488ed7c6d5be8
iwlwifi: mvm: update ucode status before stopping device

Leaving ucode_loaded to true after stop_device() has been called
is a recipe for problems. Flows that are not sync'ed with the
driver life cycle (like debugfs hooks and thermal hooks) must
check that the firmware is loaded before they interact with it.
Therefore we need to keep this variable updated with the real
status of the firmware.

Signed-off-by: Chaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c