diff options
author | Roshan Pius <rpius@google.com> | 2020-07-10 06:57:23 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-07-10 14:24:43 +0000 |
commit | 771b4dd25daedb13c9de736a8bca18485fcb1ab6 (patch) | |
tree | 60f15584a44a1bd71c1b58165f7f552297736a8d /service | |
parent | 696f9eea14613069104a8ddceb1b5658925389e3 (diff) |
ClientModeImpl: Reset WifiInfo on NETWORK_DISCONNECTION_EVENT
Invoke WifiInfo.reset() on connection failure.
Bug: 160787425
Test: atest com.android.server.wifi
Change-Id: I5c3000b4c9eefa8a264ee7ae89abd0b8039dca88
Merged-In: I5c3000b4c9eefa8a264ee7ae89abd0b8039dca88
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index 6c31185da..fd79d8258 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -5695,6 +5695,7 @@ public class ClientModeImpl extends StateMachine { } clearNetworkCachedDataIfNeeded(getTargetWifiConfiguration(), message.arg2); mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID; + mWifiInfo.reset(); break; case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: StateChangeResult stateChangeResult = (StateChangeResult) message.obj; |