diff options
author | Roshan Pius <rpius@google.com> | 2020-06-07 00:00:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-07 00:00:41 +0000 |
commit | d16232c382a531d60f677a4c70f9c653d79a7412 (patch) | |
tree | aac736bc69cf797e671b1b7dc4de347c856f8f78 /service | |
parent | 826e2b4eac79767923545fc68e53bf6bcbf43b29 (diff) | |
parent | b387b81b64717c32de2fe0f6c0a5e86abfe0de9c (diff) |
ClientModeImpl: Reset mTargetNetworkId on connection failure am: b387b81b64
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/wifi/+/11753012
Change-Id: Idc054d87c52b96a1fd8a953ac7c71a1febca33d3
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 2 |
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; |