diff options
author | Vivek Natarajan | 2008-12-24 03:39:02 +0100 |
---|---|---|
committer | John W. Linville | 2009-01-29 21:58:49 +0100 |
commit | a97b77b90decf27a86ac40ea53a741ffb5ead21a (patch) | |
tree | 4c5f61d6df51613fdde42ce7d9eb76b352ed2141 /net/mac80211/wext.c | |
parent | mac80211: A couple of fixes to dynamic power save. (diff) | |
download | kernel-qcow2-linux-a97b77b90decf27a86ac40ea53a741ffb5ead21a.tar.gz kernel-qcow2-linux-a97b77b90decf27a86ac40ea53a741ffb5ead21a.tar.xz kernel-qcow2-linux-a97b77b90decf27a86ac40ea53a741ffb5ead21a.zip |
mac80211: Enhancements to dynamic power save.
This patch enables mac80211 to send a null frame and also to
check for tim in the beacon if dynamic power save is enabled.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 8568f1e7266f..48fc6b9a62a4 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c @@ -871,12 +871,17 @@ set: mod_timer(&local->dynamic_ps_timer, jiffies + msecs_to_jiffies(local->dynamic_ps_timeout)); else { - if (local->powersave) + if (local->powersave) { + ieee80211_send_nullfunc(local, sdata, 1); conf->flags |= IEEE80211_CONF_PS; - else + ret = ieee80211_hw_config(local, + IEEE80211_CONF_CHANGE_PS); + } else { conf->flags &= ~IEEE80211_CONF_PS; - ret = ieee80211_hw_config(local, - IEEE80211_CONF_CHANGE_PS); + ret = ieee80211_hw_config(local, + IEEE80211_CONF_CHANGE_PS); + ieee80211_send_nullfunc(local, sdata, 0); + } } } |