From 771b4dd25daedb13c9de736a8bca18485fcb1ab6 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Fri, 10 Jul 2020 06:57:23 -0700 Subject: 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 --- service/java/com/android/server/wifi/ClientModeImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'service') 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; -- cgit v1.2.3