cfg80211: lower dynamic PS timeout to 100ms
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 31 Jul 2009 09:18:13 +0000 (11:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:20 +0000 (16:44 -0400)
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>
net/wireless/core.c

index cd7dff9c75f4828e061cef3aff1994527a9cd157..1e189306560d1dbb33f55e87b3b27bf2fa0461d5 100644 (file)
@@ -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,