summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2017-03-15 22:18:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-15 22:18:24 +0000
commit1df53b3ec09d8bd1713b55167ebe283bd1c1a9e9 (patch)
treee75fa9f16877f25c724a14b298feb45eeb122584 /service
parentffe8694d14621b679ef06ca2679cf55462b33ea8 (diff)
parent915a3782e33684562dff8a0897d1446227301b75 (diff)
Merge "Schedule a scan immediately when disconnected"
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConnectivityManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java
index 179da0f14..4ae3a96a2 100644
--- a/service/java/com/android/server/wifi/WifiConnectivityManager.java
+++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java
@@ -948,9 +948,10 @@ public class WifiConnectivityManager {
if (mWifiState == WIFI_STATE_DISCONNECTED) {
mLastConnectionAttemptBssid = null;
scheduleWatchdogTimer();
+ startConnectivityScan(SCAN_IMMEDIATELY);
+ } else {
+ startConnectivityScan(SCAN_ON_SCHEDULE);
}
-
- startConnectivityScan(SCAN_ON_SCHEDULE);
}
/**