]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mac80211_hwsim: enforce PS_MANUAL_POLL to be set after PS_ENABLED
authorAdiel Aloni <adiel.aloni@intel.com>
Fri, 1 Dec 2017 11:50:53 +0000 (13:50 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 19 Mar 2018 23:42:10 +0000 (20:42 -0300)
commit1700afe34ad74f9f2c5a6fd93d2a23533d0abadf
treeab37bd964eb705f567f92fd9aa60fbe96c62948a
parent58379e0ca9a8c14b1103228ab980c5a6eae54ff5
mac80211_hwsim: enforce PS_MANUAL_POLL to be set after PS_ENABLED

BugLink: http://bugs.launchpad.net/bugs/1756978
[ Upstream commit e16ea4bb516bc21ea2202f2107718b29218bea59 ]

Enforce using PS_MANUAL_POLL in ps hwsim debugfs to trigger a poll,
only if PS_ENABLED was set before.
This is required due to commit c9491367b759 ("mac80211: always update the
PM state of a peer on MGMT / DATA frames") that enforces the ap to
check only mgmt/data frames ps bit, and then update station's power save
accordingly.
When sending only ps-poll (control frame) the ap will not be aware that
the station entered power save.
Setting ps enable before triggering ps_poll, will send NDP with PM bit
enabled first.

Signed-off-by: Adiel Aloni <adiel.aloni@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/wireless/mac80211_hwsim.c