diff options
author | Jimmy Chen <jimmycmchen@google.com> | 2020-06-12 01:33:39 +0800 |
---|---|---|
committer | Jimmy Chen <jimmycmchen@google.com> | 2020-06-15 10:38:58 +0000 |
commit | e3706635b367d49b72c29317879a4e017de97ca1 (patch) | |
tree | 6fcc3a74fb68e1d2e506a0b15c4306e11077b94a | |
parent | c7a1d6a7ddcfad8a3971a76765ec25ad86024f92 (diff) |
wifi: handle EAP session renewing case for GSM auth
EAP session will be renewed periodically which means that
the framework might receive auth request at connection state.
The target network is clearned after the connected event,
as a result, current network should be checked as well.
Bug: 158152464
Test: atest FrameworksWifiTests
Change-Id: Icb123f83aef53b5053747e1e9d9ffd47fb631966
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index 6b6c39d7c..18d8f7a67 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -5822,6 +5822,9 @@ public class ClientModeImpl extends StateMachine { && mTargetWifiConfiguration.networkId == requestData.networkId) { logd("id matches targetWifiConfiguration"); + } else if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID + && mLastNetworkId == requestData.networkId) { + logd("id matches currentWifiConfiguration"); } else { logd("id does not match targetWifiConfiguration"); return; |