diff options
author | Daisuke Niwa <daisuke.niwa@sony.com> | 2018-11-05 18:33:26 +0900 |
---|---|---|
committer | David Su <dysu@google.com> | 2018-12-11 11:39:23 -0800 |
commit | b612e7bc2e8b2362047e55a1a4ad1e8230c99f84 (patch) | |
tree | e2ede9a5854063df1710ddce52984a62e9e862ed /service/java/com/android/server/wifi | |
parent | 66559ad15cdeba7bda50d502aaacaab4c53f027d (diff) | |
download | android_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')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigManager.java | 7 |
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 { |