aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2009-07-31 11:54:23 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:20 -0400
commitd1c5091f23fed5195271e2849f89017d3a126521 (patch)
treeaf56ced6f0db8fd4183555f31c187e235b896e93 /net/mac80211
parenta43abf293965230c93a4b74e5d10b9d60b153ab4 (diff)
mac80211: Increase timeouts for station polling
Do a probe request every 30 seconds, and wait for probe response, half a second This should lower the traffic that card sends, thus save power Wainting longer for response makes probe more robust against 'slow' access points Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Tested-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ccd5c7a1749f..6d5a1ee0445f 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -42,13 +42,13 @@
42 * Time the connection can be idle before we probe 42 * Time the connection can be idle before we probe
43 * it to see if we can still talk to the AP. 43 * it to see if we can still talk to the AP.
44 */ 44 */
45#define IEEE80211_CONNECTION_IDLE_TIME (2 * HZ) 45#define IEEE80211_CONNECTION_IDLE_TIME (30 * HZ)
46/* 46/*
47 * Time we wait for a probe response after sending 47 * Time we wait for a probe response after sending
48 * a probe request because of beacon loss or for 48 * a probe request because of beacon loss or for
49 * checking the connection still works. 49 * checking the connection still works.
50 */ 50 */
51#define IEEE80211_PROBE_WAIT (HZ / 5) 51#define IEEE80211_PROBE_WAIT (HZ / 2)
52 52
53#define TMR_RUNNING_TIMER 0 53#define TMR_RUNNING_TIMER 0
54#define TMR_RUNNING_CHANSW 1 54#define TMR_RUNNING_CHANSW 1