]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/mac80211/mlme.c
mac80211: fix PS vs. scan race
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 22 Apr 2009 21:02:51 +0000 (23:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:29 +0000 (15:14 -0400)
commitd5edaedc16ebd0635435dec068d49e07a76ba7d9
tree0d6215a5128a72e82f76a51b112d99a0a2bd7bd5
parent0e41f715c04f85a40ae6531d660be2241717be1c
mac80211: fix PS vs. scan race

When somebody changes the PS parameters while scanning
is in progress, we enable PS -- during the scan. This
is clearly not desirable, and we can just abort enabling
PS when scanning since when the scan finishes it will
be taken care of.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c