summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2015-08-11 19:53:14 +0800
committerRockchip2015-08-11 19:53:14 +0800
commitb374025ae5dc56da8cc9f47c2821c073bb815235 (patch)
tree81ab7f42ad9918e94323a61d203ba83aa44f5166
parent21e83ec448f564251e878b32ac0e09c74fa9123e (diff)
P2P: modify wifi scan period to 30min if p2p connected.
-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)) {