summaryrefslogtreecommitdiffstats
path: root/wifi/java/android
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-11-03 16:06:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-03 16:06:07 -0700
commita3d9eba10461158a52acfc2a0324696b25db761f (patch)
treed53b8dc17432fcc52ade68e1b5167ad2369e3810 /wifi/java/android
parent4fdad1af53ea46892f477185ff93d4182b7aadf9 (diff)
parent1667a485d7cedcbd2cf0300e9a0dffdfaa93b0a2 (diff)
downloadframeworks_base-a3d9eba10461158a52acfc2a0324696b25db761f.zip
frameworks_base-a3d9eba10461158a52acfc2a0324696b25db761f.tar.gz
frameworks_base-a3d9eba10461158a52acfc2a0324696b25db761f.tar.bz2
Merge "Reset IP failure counter on a success" into ics-mr1
Diffstat (limited to 'wifi/java/android')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index e981da7..a46771b 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -1651,6 +1651,7 @@ public class WifiStateMachine extends StateMachine {
mDhcpInfoInternal = dhcpInfoInternal;
}
mLastSignalLevel = -1; // force update of signal strength
+ mReconnectCount = 0; //Reset IP failure tracking
WifiConfigStore.setIpConfiguration(mLastNetworkId, dhcpInfoInternal);
InetAddress addr = NetworkUtils.numericToInetAddress(dhcpInfoInternal.ipAddress);
mWifiInfo.setInetAddress(addr);