iwlwifi: mvm: move the check if associated outside of the iterator for wowlan
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 22 Sep 2014 10:01:59 +0000 (13:01 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Oct 2014 10:49:12 +0000 (12:49 +0200)
commit1e4d19ca6efba26964c9597b643a1dcda79ad296
tree58b75ec21982ea87dbac0db0b90d0ec83caf739e
parent671b58202e485f26abf1f92c1b52ed45d03d0438
iwlwifi: mvm: move the check if associated outside of the iterator for wowlan

Instead of checking if we are associated when suspending with wowlan
enabled in the interface iterator, allow it to return an unassociated
vif and move the check to the main suspend function.  This will be
needed by netdetect, since it should also work when we are not
associated but the vif is active.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c