diff options
author | Roshan Pius <rpius@google.com> | 2016-11-18 20:04:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-11-18 20:04:25 +0000 |
commit | c6e5fba1ef04ea394a3c3ee7b97b3bdb6a746155 (patch) | |
tree | 507cbf712fbcdfaa0b1f26d7c61237a01713ebed /service | |
parent | c5b7435293e18228c1ae003f0d041f975266f38a (diff) | |
parent | 2bf8cc9cabe26484345f416136495a767b453e01 (diff) |
Merge "WifiConnectivityManager: Disable PNO scans"
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConnectivityManager.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java index 357fa32ed..5210adcaa 100644 --- a/service/java/com/android/server/wifi/WifiConnectivityManager.java +++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java @@ -900,12 +900,10 @@ public class WifiConnectivityManager { return; } - if (mScreenOn) { + // TODO(b/32977707): Start PNO scans when screen is off once wificond's interface + // is hooked on to WifiScanningService. + if (mScreenOn || (mWifiState == WIFI_STATE_DISCONNECTED)) { startPeriodicScan(scanImmediately); - } else { // screenOff - if (mWifiState == WIFI_STATE_DISCONNECTED) { - startDisconnectedPnoScan(); - } } } |