From e3706635b367d49b72c29317879a4e017de97ca1 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Fri, 12 Jun 2020 01:33:39 +0800 Subject: 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 --- service/java/com/android/server/wifi/ClientModeImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'service') 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; -- cgit v1.2.3