diff options
author | King Li <kjli@codeaurora.org> | 2016-04-06 18:34:18 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-06-24 11:28:49 -1000 |
commit | 012e76c63e875a1f20cf1fa728808f01169bfc30 (patch) | |
tree | 839dad189c6bcdad03222f78b97d72cd54511647 /service/java | |
parent | 80dfbc24355d9714d7c2012538cef295cdb569ad (diff) | |
download | frameworks_opt_net_wifi-012e76c63e875a1f20cf1fa728808f01169bfc30.tar.gz frameworks_opt_net_wifi-012e76c63e875a1f20cf1fa728808f01169bfc30.tar.bz2 frameworks_opt_net_wifi-012e76c63e875a1f20cf1fa728808f01169bfc30.zip |
Wifi: Clear scan caches while loading configured networks
Framework stores the scan caches for each configured network in a hash
map with network id as key and never clear them. If removing a network
and then re-enabling wifi, framework will re-assigned network id for
each configured network while loading them, however, the scan caches
still keeps the obsolete network id as its key.
This change is to clear the scan caches when framework loads configured
networks, which makes sure the network id in the scan caches is up to
date.
CRs-Fixed: 999659
Change-Id: I1a6cdb2871e6f58f7aa5d233517d5983be91a7df
Diffstat (limited to 'service/java')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigStore.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java index 61f31f3..767607b 100644 --- a/service/java/com/android/server/wifi/WifiConfigStore.java +++ b/service/java/com/android/server/wifi/WifiConfigStore.java @@ -1934,6 +1934,7 @@ public class WifiConfigStore extends IpConfigStore { mLastPriority = 0; mConfiguredNetworks.clear(); + mScanDetailCaches.clear(); List<WifiConfiguration> configTlsResetList = new ArrayList<WifiConfiguration>(); int last_id = -1; boolean done = false; |