summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIsaac Levy <ilevy@google.com>2011-08-09 15:35:59 -0700
committerIsaac Levy <ilevy@google.com>2011-08-09 16:15:55 -0700
commit26a8d71413f107603ad68f4fa80cf2bf3da9dab1 (patch)
treecd9bc5f93e431b97f79c68f7640e7219bd3e3d8f /wifi
parent7466b0fdfe6ae07e56053d70db414b7a2f792400 (diff)
downloadframeworks_base-26a8d71413f107603ad68f4fa80cf2bf3da9dab1.zip
frameworks_base-26a8d71413f107603ad68f4fa80cf2bf3da9dab1.tar.gz
frameworks_base-26a8d71413f107603ad68f4fa80cf2bf3da9dab1.tar.bz2
DnsPinger -- log setup problems
Changed class to send a pings for 1.5 seconds to see if conn problems are resolving after time. Turning RD flag on for now Change-Id: I05bcf208bda3ea8fb98bd7aec8f0109523d64583
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiWatchdogStateMachine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java b/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java
index 5c8926c..4dd856f 100644
--- a/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiWatchdogStateMachine.java
@@ -83,7 +83,7 @@ public class WifiWatchdogStateMachine extends StateMachine {
private static final long DEFAULT_WALLED_GARDEN_INTERVAL_MS = 30 * 60 * 1000;
private static final int DEFAULT_MAX_SSID_BLACKLISTS = 7;
- private static final int DEFAULT_NUM_DNS_PINGS = 5;
+ private static final int DEFAULT_NUM_DNS_PINGS = 15; // Multiple pings to detect setup issues
private static final int DEFAULT_MIN_DNS_RESPONSES = 3;
private static final int DEFAULT_DNS_PING_TIMEOUT_MS = 2000;
@@ -94,7 +94,7 @@ public class WifiWatchdogStateMachine extends StateMachine {
private static final String DEFAULT_WALLED_GARDEN_URL =
"http://clients3.google.com/generate_204";
private static final int WALLED_GARDEN_SOCKET_TIMEOUT_MS = 10000;
- private static final int DNS_INTRATEST_PING_INTERVAL = 20;
+ private static final int DNS_INTRATEST_PING_INTERVAL = 200; // Long delay to detect setup issues
private static final int BASE = Protocol.BASE_WIFI_WATCHDOG;