]> git.baikalelectronics.ru Git - kernel.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)
commit18327be9843584e6c0cace08cb3d4ec0cd69bdeb
treea96f6e250b9021f04e77dfb7b03b790dfcd5f3c0
parentc6921174732723600f4fd34f8a8f7485ae50aebf
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