summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-06-05 10:00:57 -0700
committerRoshan Pius <rpius@google.com>2020-06-06 22:19:42 +0000
commitb387b81b64717c32de2fe0f6c0a5e86abfe0de9c (patch)
tree08aab8c317ae3623308dc190f8db2d17ce7aa2eb /service
parentd183457586db509753e5b87c91b8c584fe5a53d3 (diff)
ClientModeImpl: Reset mTargetNetworkId on connection failure
Bug: 158127841 Test: atest com.android.server.wifi Change-Id: I321c9380a2277c20fb985c6c770c1bf3362ed588 Merged-In: I321c9380a2277c20fb985c6c770c1bf3362ed588
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ClientModeImpl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java
index b5bd479db..e10d5367e 100644
--- a/service/java/com/android/server/wifi/ClientModeImpl.java
+++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -3878,6 +3878,7 @@ public class ClientModeImpl extends StateMachine {
getTargetSsid(), bssid,
WifiLastResortWatchdog.FAILURE_CODE_ASSOCIATION);
}
+ mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
break;
case WifiMonitor.AUTHENTICATION_FAILURE_EVENT:
stopIpClient();
@@ -5677,6 +5678,7 @@ public class ClientModeImpl extends StateMachine {
WifiLastResortWatchdog.FAILURE_CODE_AUTHENTICATION);
}
clearNetworkCachedDataIfNeeded(getTargetWifiConfiguration(), message.arg2);
+ mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
break;
case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
StateChangeResult stateChangeResult = (StateChangeResult) message.obj;