diff options
author | Randy Pan <zpan@google.com> | 2017-03-15 22:18:24 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-15 22:18:24 +0000 |
commit | 1df53b3ec09d8bd1713b55167ebe283bd1c1a9e9 (patch) | |
tree | e75fa9f16877f25c724a14b298feb45eeb122584 /service | |
parent | ffe8694d14621b679ef06ca2679cf55462b33ea8 (diff) | |
parent | 915a3782e33684562dff8a0897d1446227301b75 (diff) |
Merge "Schedule a scan immediately when disconnected"
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConnectivityManager.java | 5 |
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); } /** |