iwlwifi: mvm: don't iterate interfaces to disconnect in net-detect
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 13 Feb 2015 19:37:09 +0000 (21:37 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 2 Mar 2015 06:19:32 +0000 (08:19 +0200)
commite0ede17789b50537439931f974deeed9cb24026b
treec0dd907a202df4023cf9469843d40370d52fffdf
parent7e1223b50089ab5901215d2fd8c61b42c7cfe034
iwlwifi: mvm: don't iterate interfaces to disconnect in net-detect

We shouldn't call iwl_mvm_d3_disconnect_iter() on the running
interfaces when we are woken up due to net-detect, because it doesn't
make sense.  Additionally, this seems to set the
IEEE80211_SDATA_DISCONNECT_RESUME flag that will cause a disconnection
on the next resume (if a normal WoWLAN is used).

To solve this, skip the iteration loop when net-detect is set.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reported-by: Samuel Tan <samueltan@chromium.org>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/d3.c