From: Vivek Natarajan Date: Mon, 30 Nov 2009 11:20:53 +0000 (+0530) Subject: mac80211: Fix dynamic power save for scanning. X-Git-Tag: v2.6.33-rc1~299^2~44^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c3f4bbedc241ddcd3abe1f419c356e625231da1;p=pandora-kernel.git mac80211: Fix dynamic power save for scanning. 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 Reviewed-by: Kalle Valo Signed-off-by: John W. Linville --- Reading git-diff-tree failed