From 83903ec3df7c51307fd662d7f28544c2051dc471 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Tue, 15 Mar 2016 19:46:30 +0530 Subject: Reduce the link de-bounce time to 4 from earlier 7 seconds The Link de-bounce time of 7 seconds affects the station's handover time to a better AP,thus tearing down the VoWiFi call (due to RTP timeout). Reduce this time to 4 seconds. BUG=27527764 Change-Id: Icc68496c4364fb34139fb6e90a87377c56634383 --- service/java/com/android/server/wifi/WifiStateMachine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service') diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index b5ae852a7..6a8350c41 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -369,7 +369,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.PnoEven * Interval in milliseconds between receiving a disconnect event * while connected to a good AP, and handling the disconnect proper */ - private static final int LINK_FLAPPING_DEBOUNCE_MSEC = 7000; + private static final int LINK_FLAPPING_DEBOUNCE_MSEC = 4000; /** * Delay between supplicant restarts upon failure to establish connection @@ -8116,7 +8116,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.PnoEven mWifiConfigManager.thresholdQualifiedRssi5.get()))) { // Start de-bouncing the L2 disconnection: // this L2 disconnection might be spurious. - // Hence we allow 7 seconds for the state machine to try + // Hence we allow 4 seconds for the state machine to try // to reconnect, go thru the // roaming cycle and enter Obtaining IP address // before signalling the disconnect to ConnectivityService and L3 -- cgit v1.2.3