summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorzhangshuxiao <zhangshuxiao@xiaomi.com>2016-07-15 10:47:29 +0800
committerRoshan Pius <rpius@google.com>2016-08-25 12:05:11 -0700
commit0fd8e37b6285c448d971fb4b61b287b5b0a27c6f (patch)
tree7abf676d7a8d0e8cb6889272bdf3c986de1e45f1 /service
parentb442542d7772ad29f85a80ddb8a8f362918a79d1 (diff)
Some networks can not connect automatically.
Becasuse the key of scan cache is supplicant's networkid, when supplicant process restart, the supplicant's networkid may be regenerated, so clear scan cache when loading the configured networks. BUG: 30158982 Change-Id: Iec94e8eef517bd0411eb0be53a31cdb34a1494cf Signed-off-by: zhangshuxiao <zhangshuxiao@xiaomi.com>
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index dbe67e88e..94879a011 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -1653,6 +1653,7 @@ public class WifiConfigManager {
// 2) mConfiguredNetworks caches a Passpoint network's FQDN the moment the network is added.
// Thus, we had to load the FQDNs first.
mConfiguredNetworks.clear();
+ mScanDetailCaches.clear();
for (Map.Entry<String, WifiConfiguration> entry : configs.entrySet()) {
final String configKey = entry.getKey();
final WifiConfiguration config = entry.getValue();