summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/WifiConfigManager.java
diff options
context:
space:
mode:
authorDaisuke Niwa <daisuke.niwa@sony.com>2018-11-05 18:33:26 +0900
committerDavid Su <dysu@google.com>2018-12-11 11:39:23 -0800
commitb612e7bc2e8b2362047e55a1a4ad1e8230c99f84 (patch)
treee2ede9a5854063df1710ddce52984a62e9e862ed /service/java/com/android/server/wifi/WifiConfigManager.java
parent66559ad15cdeba7bda50d502aaacaab4c53f027d (diff)
downloadandroid_frameworks_opt_net_wifi-b612e7bc2e8b2362047e55a1a4ad1e8230c99f84.tar.gz
android_frameworks_opt_net_wifi-b612e7bc2e8b2362047e55a1a4ad1e8230c99f84.tar.bz2
android_frameworks_opt_net_wifi-b612e7bc2e8b2362047e55a1a4ad1e8230c99f84.zip
Fix issue that Wifi Wake is not enabled in boot sequence
For instance, at first time boot, if user unlock comes in before loading from store, the read operation to stores doesn't happen. This leads to the issue that Wifi Wake is not enabled because WakeupConfigStoreData#hasBeenRead method returns false. To handle this situation, this patch is to trigger read operation even if there is nothing in the store so that all the store data clients are informed that store data has been read. Bug: 120189688 Test: Unit tests Signed-off-by: Daichi Ueura <daichi.ueura@sony.com> Change-Id: If999b97abda115a956a268726f08019e02d5f46c
Diffstat (limited to 'service/java/com/android/server/wifi/WifiConfigManager.java')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index a145fde47..e78d177fb 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -2945,12 +2945,7 @@ public class WifiConfigManager {
mWifiConfigStore.setUserStores(WifiConfigStore.createUserFiles(mCurrentUserId));
mDeferredUserUnlockRead = false;
}
- if (!mWifiConfigStore.areStoresPresent()) {
- Log.d(TAG, "New store files not found. No saved networks loaded!");
- if (!mWifiConfigStoreLegacy.areStoresPresent()) {
- // No legacy store files either, so reset the pending store read flag.
- mPendingStoreRead = false;
- }
+ if (mWifiConfigStoreLegacy.areStoresPresent()) {
return true;
}
try {