From 0fd8e37b6285c448d971fb4b61b287b5b0a27c6f Mon Sep 17 00:00:00 2001 From: zhangshuxiao Date: Fri, 15 Jul 2016 10:47:29 +0800 Subject: 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 --- service/java/com/android/server/wifi/WifiConfigManager.java | 1 + 1 file changed, 1 insertion(+) 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 entry : configs.entrySet()) { final String configKey = entry.getKey(); final WifiConfiguration config = entry.getValue(); -- cgit v1.2.3