]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: wowlan: enable powersave if suspend while ps-polling
authorChaitanya T K <chaitanya.mgit@gmail.com>
Wed, 10 Jun 2015 13:42:31 +0000 (19:12 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 09:13:21 +0000 (11:13 +0200)
commit541b6ed7cee1ec7c8f525f51a0ff097776111aeb
treea96f6e250b9021f04e77dfb7b03b790dfcd5f3c0
parente9de01907e3d1957591113daa3857c0bf01067ef
mac80211: wowlan: enable powersave if suspend while ps-polling

If for any reason we're in the middle of PS-polling or awake after
TX due to dynamic powersave while going to suspend, go back to save
power. This might cause a response frame to get lost, but since we
can't really wait for it while going to suspend that's still better
than not enabling powersave which would cause higher power usage
during (and possibly even after) suspend.

Note that this really only affects the very few drivers that use
the powersave implementation in mac80211.

Signed-off-by: Chaitanya T K <chaitanya.mgit@gmail.com>
[rewrite misleading commit log]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c