]> 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)
commitb64d53103eea6f5cd3625c16e9f51bd9f90c3a0c
tree3a28a7b8ada90df1f17673e6f8a49fb9b20e209a
parent83820e4b2578e3d98d1d059ab966352fb163d56c
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