aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-31 05:18:13 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:20 -0400
commit75e6c3b72b3ab01c47629f3fbd0fed4e6550bf3a (patch)
treeaff326fc05c30a81a7b91e621e58268726b54b08 /net
parent97cad51e191919b43aabdc85b83241b66c3fcf2c (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index cd7dff9c75f4..1e189306560d 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,
671 wdev->wext.default_mgmt_key = -1; 671 wdev->wext.default_mgmt_key = -1;
672 wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC; 672 wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC;
673 wdev->wext.ps = CONFIG_CFG80211_DEFAULT_PS_VALUE; 673 wdev->wext.ps = CONFIG_CFG80211_DEFAULT_PS_VALUE;
674 wdev->wext.ps_timeout = 500; 674 wdev->wext.ps_timeout = 100;
675 if (rdev->ops->set_power_mgmt) 675 if (rdev->ops->set_power_mgmt)
676 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev, 676 if (rdev->ops->set_power_mgmt(wdev->wiphy, dev,
677 wdev->wext.ps, 677 wdev->wext.ps,