mac80211: Fix dynamic power save for scanning.
commit58cd74bafb36b884abe67998cdef4203ae01769f
authorVivek Natarajan <vnatarajan@atheros.com>
Wed, 16 Dec 2009 16:51:45 +0000 (16 11:51 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:24 +0000 (18 14:05 -0800)
treeb405fd62427ef140d858397b0951a20f94724cfa
parent0f77b958dccf9d3b59d986ea160f84b50c646712
mac80211: Fix dynamic power save for scanning.

Upstream commit: 7c3f4bbedc241ddcd3abe1f419c356e625231da1

Not only ps_sdata but also IEEE80211_CONF_PS is to be considered
before restoring PS in scan_ps_disable(). For instance, when ps_sdata
is set but CONF_PS is not set just because the dynamic timer is still
running, a sw scan leads to setting of CONF_PS in scan_ps_disable
instead of restarting the dynamic PS timer.
Also for the above case, a null data frame is to be sent after
returning to operating channel which was not happening with the
current implementation. This patch fixes this too.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Reviewed-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/ieee80211_i.h
net/mac80211/scan.c