diff options
author | Kumar Anand <kumaranand@google.com> | 2020-03-11 21:13:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-11 21:13:20 +0000 |
commit | 3cf64dc4fcd41d8f777c747b6e5ffde5ffac777d (patch) | |
tree | 8802dc8a43518623546f81bf1baf10e5ca25582d /service | |
parent | 4f9a103090a7da98a78f741579b1954708526dd5 (diff) | |
parent | 408c27935fb06b3e302b67768e841ff29f82d045 (diff) |
Merge "Wifi: remove PMK cache in supplicant due to sim removal" into rvc-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index d3bbdfdc8..be3b3132c 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -4897,9 +4897,10 @@ public class ClientModeImpl extends StateMachine { && !mTelephonyUtil.isSimPresent(mLastSubId))) { mWifiMetrics.logStaEvent(StaEvent.TYPE_FRAMEWORK_DISCONNECT, StaEvent.DISCONNECT_RESET_SIM_NETWORKS); - - mWifiNative.disconnect(mInterfaceName); + // remove local PMKSA cache in framework mWifiNative.removeNetworkCachedData(mLastNetworkId); + // remove network so that supplicant's PMKSA cache is cleared + mWifiNative.removeAllNetworks(mInterfaceName); mSimRequiredNotifier.showSimRequiredNotification( config, mLastSimBasedConnectionCarrierName); transitionTo(mDisconnectingState); |