OSDN Git Service

mac80211: don't do driver suspend with auth/assoc in progress
authorJohannes Berg <johannes.berg@intel.com>
Sun, 1 Mar 2015 07:10:06 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2015 09:34:08 +0000 (10:34 +0100)
commitef7c67257c9a0765bd1a53f83fd63d55a0f7b224
tree3a28a7b8ada90df1f17673e6f8a49fb9b20e209a
parentc8fff3dc72817d476e083c3f9bc59a11901ecfeb
mac80211: don't do driver suspend with auth/assoc in progress

Drivers can't really be expected to suspend properly while auth
or assoc is in progress since then they don't have any state
they could keep with WoWLAN, nor can they actually finish the
authentication or association. In fact, keeping this can cause
subtle issues with drivers like iwlwifi that refuse WoWLAN if
not associated, but have trouble figuring out what's going on
in the middle of association.

In any case, regardless of possible driver issues in this area,
it doesn't make sense for mac80211 to try to WoWLAN-suspend in
the middle of such operations, so stop them before.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c