summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index 7bbd3fd..37ca88d 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -8291,9 +8291,10 @@ public class WifiStateMachine extends StateMachine {
// not be processed) and restart the scan
int period = mDisconnectedScanPeriodMs;
if (mP2pConnected.get()) {
+ long defaultInterval = 1800000;
period = (int)Settings.Global.getLong(mContext.getContentResolver(),
Settings.Global.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS,
- mDisconnectedScanPeriodMs);
+ defaultInterval);
}
if (!checkAndRestartDelayedScan(message.arg2,
true, period, null, null)) {