diff options
author | Hai Shalom <haishalom@google.com> | 2020-08-03 15:44:42 -0700 |
---|---|---|
committer | Hai Shalom <haishalom@google.com> | 2020-08-04 21:47:54 +0000 |
commit | 0328224348fe41e2df48e811d5311c90209cd40e (patch) | |
tree | d67f0ae724e0125f69b6301d844c5bf8ac8928c4 /service | |
parent | ece9f2221fcb68c1f18ab78966e7eb8f5049dfdd (diff) |
Flush ANQP caches when toggling Wi-Fi off
Bug: 154217281
Test: atest ClientModeImplTest
Test: Toggle Wi-Fi off, verify ANQP caches are flushed
Change-Id: I8a55771d1062a12e12ca37b2f34e15b5ead8fb65
Merged-In: I8a55771d1062a12e12ca37b2f34e15b5ead8fb65
(cherry picked from commit 103512e9be756fa95e5a57525b57eca5a4b582a4)
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index fd79d8258..c1768eca9 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -3686,9 +3686,10 @@ public class ClientModeImpl extends StateMachine { // TODO: b/79504296 This broadcast has been deprecated and should be removed sendSupplicantConnectionChangedBroadcast(false); - // Let's remove any ephemeral or passpoint networks. + // Remove any ephemeral or Passpoint networks, flush ANQP cache mWifiConfigManager.removeAllEphemeralOrPasspointConfiguredNetworks(); mWifiConfigManager.clearUserTemporarilyDisabledList(); + mPasspointManager.clearAnqpRequestsAndFlushCache(); } void registerConnected() { |