diff options
author | Randy Pan <zpan@google.com> | 2016-05-26 15:00:46 -0700 |
---|---|---|
committer | Randy Pan <zpan@google.com> | 2016-05-26 15:00:46 -0700 |
commit | f5dba8eb5e660932367fc650a2e2ca724df3734e (patch) | |
tree | b12bcef028c284fa448ea97f4f56722523f70360 /service | |
parent | 528d0693bde1e2b83fab717252cf0ea2c55b4e56 (diff) |
Reset single scan timestamp when disabling Wifi
This timestamp needs to be reset when WiFi is disabled. When WiFi
is enabled again, a connectivity scan starts immediately.
Otherwise it can be delayed because of the minimum periodic single
scan interval rule.
Bug: 28986330
Change-Id: I5a01dc267a05791eba34c87e6d9301bd998bf377
Tests: Wifi unit tests, manual test
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConnectivityManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java index 1f1a08b6a..eb9427c8b 100644 --- a/service/java/com/android/server/wifi/WifiConnectivityManager.java +++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java @@ -1044,6 +1044,7 @@ public class WifiConnectivityManager { if (!mWifiEnabled) { stopConnectivityScan(); + mLastPeriodicSingleScanTimeStamp = INVALID_TIME_STAMP; } } |