diff options
author | Jimmy Chen <jimmycmchen@google.com> | 2020-06-09 10:54:23 +0800 |
---|---|---|
committer | Jimmy Chen <jimmycmchen@google.com> | 2020-06-09 10:58:05 +0800 |
commit | fa38898591c8001f6bea988d4a227122c0bb013b (patch) | |
tree | ffe98248ca979aa13fe0a548984e74534709c0ce /service | |
parent | b76c6c33ad8bfb021c6657e71aaccbcd20714fac (diff) |
wifi: handle EAP session renewing case
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: I33e47ae30ea32092eb258ef5335cd558bfcad238
Diffstat (limited to 'service')
-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 e10d5367e..10a41f5dc 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -5852,6 +5852,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; |