diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-16 13:17:25 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:16 -0400 |
commit | 10f644a47b76d3e61b98f2d02ce9690b94c51ee5 (patch) | |
tree | fc344d0f888ea0b97608cd53eec1d2dc17672087 /net/mac80211/wext.c | |
parent | 965bedadc01d34027455d5d5b67063ef0209c955 (diff) | |
download | linux-10f644a47b76d3e61b98f2d02ce9690b94c51ee5.tar.gz linux-10f644a47b76d3e61b98f2d02ce9690b94c51ee5.tar.bz2 linux-10f644a47b76d3e61b98f2d02ce9690b94c51ee5.zip |
mac80211: disable powersave if pm_qos asks for low latency
When an application asks for a latency lower than the beacon interval
there's nothing we can do -- we need to stay awake and not have the
AP buffer frames for us. Add code to automatically calculate this
constraint in mac80211 so drivers need not concern themselves with it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 81f63e57027f..1c4664b8b1a0 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c @@ -789,7 +789,7 @@ static int ieee80211_ioctl_siwpower(struct net_device *dev, ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_DYNPS_TIMEOUT); - ieee80211_recalc_ps(local); + ieee80211_recalc_ps(local, -1); return 0; } |