]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9319e77be171479f43c18b3090af2c1a54bb3417
tree3a28a7b8ada90df1f17673e6f8a49fb9b20e209a
parentf42cc0e8a7d793eec2279ec482c61e562a3e51e2
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