diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-31 11:18:13 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:20 -0400 |
commit | 75e6c3b72b3ab01c47629f3fbd0fed4e6550bf3a (patch) | |
tree | aff326fc05c30a81a7b91e621e58268726b54b08 /net | |
parent | 97cad51e191919b43aabdc85b83241b66c3fcf2c (diff) | |
download | linux-3.10-75e6c3b72b3ab01c47629f3fbd0fed4e6550bf3a.tar.gz linux-3.10-75e6c3b72b3ab01c47629f3fbd0fed4e6550bf3a.tar.bz2 linux-3.10-75e6c3b72b3ab01c47629f3fbd0fed4e6550bf3a.zip |
cfg80211: lower dynamic PS timeout to 100ms
The default of 500ms is pretty high, and leads
to the device being awake at least 50% of the
time under such light traffic conditions as a
simple 1 second interval ping. Reduce to just
100ms -- it should have a similar effect while
providing a better sleep time.
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index cd7dff9c75f..1e189306560 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -671,7 +671,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, wdev->wext.default_mgmt_key = -1; wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC; wdev->wext.ps = CONFIG_CFG80211_DEFAULT_PS_VALUE; - wdev->wext.ps_timeout = 500; + wdev->wext.ps_timeout = 100; if (rdev->ops->set_power_mgmt) if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, wdev->wext.ps, |