am db0cff71: am c376afb4: Merge "Wait a bit longer for wifi to shut down before rewriting the config" into mnc-dev
* commit 'db0cff71c8d1a7f7f1d5c12a4f7c343030adf21b': Wait a bit longer for wifi to shut down before rewriting the config
This commit is contained in:
@@ -447,8 +447,10 @@ public class SettingsBackupAgent extends BackupAgentHelper {
|
|||||||
Settings.Global.putInt(cr,
|
Settings.Global.putInt(cr,
|
||||||
Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0);
|
Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0);
|
||||||
}
|
}
|
||||||
// !!! Give the wifi stack a moment to quiesce
|
// !!! Give the wifi stack a moment to quiesce. We've observed the
|
||||||
try { Thread.sleep(1500); } catch (InterruptedException e) {}
|
// response to disabling WIFI_SCAN_ALWAYS_AVAILABLE taking more
|
||||||
|
// than 1500ms, so we wait a generous 2500 here before proceeding.
|
||||||
|
try { Thread.sleep(2500); } catch (InterruptedException e) {}
|
||||||
if (restoredSupplicantData != null) {
|
if (restoredSupplicantData != null) {
|
||||||
restoreWifiSupplicant(FILE_WIFI_SUPPLICANT,
|
restoreWifiSupplicant(FILE_WIFI_SUPPLICANT,
|
||||||
restoredSupplicantData, restoredSupplicantData.length);
|
restoredSupplicantData, restoredSupplicantData.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user