summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorSteven Liu <steveliu@google.com>2019-11-19 13:27:33 -0800
committerSteven Liu <steveliu@google.com>2019-11-26 09:37:16 -0800
commite0a2deecb745324731691a25a028e2924aad47cb (patch)
treeb52e65b9273b2ad9b63743bebd8bf2ad4aae6022 /service
parent1fe884e814eeb3782d06298afcf07d9b1e799a18 (diff)
Avoid using old PMK data associated with SIM card removed.
Bug: 132385576 Test: atest com.android.server.wifi Change-Id: I0429c02dd6abf34d6a5288ac70e6abc539783695
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ClientModeImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java
index 7251fe338..ad140a701 100644
--- a/service/java/com/android/server/wifi/ClientModeImpl.java
+++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -4533,9 +4533,9 @@ public class ClientModeImpl extends StateMachine {
// check if the removed sim card is associated with current config
mWifiMetrics.logStaEvent(StaEvent.TYPE_FRAMEWORK_DISCONNECT,
StaEvent.DISCONNECT_RESET_SIM_NETWORKS);
- // TODO(b/132385576): STA may immediately connect back to the
- // network that we just disconnected from
+
mWifiNative.disconnect(mInterfaceName);
+ mWifiNative.removeNetworkCachedData(mLastNetworkId);
transitionTo(mDisconnectingState);
}
}