From cd57763357edd64595060b9607cae710084372fc Mon Sep 17 00:00:00 2001 From: Victor Hsu Date: Fri, 2 Sep 2022 13:21:20 +0000 Subject: [PATCH] wifi: Write fs_ready at eariler time wifi framework try to enable wifi before sys.boot_completed after factory reset. It causes fs_ready never to be written. Move the timing of fs_ready to be written when all modules ready. Bug: 244411535 Bug: 243876449 Test: reboot stress and factory reset stress test are passed. Change-Id: I1cac269ec6ed6eee5f34e72186c566c8cddd4925 --- conf/init.lynx.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc index 6892718..9ebba66 100644 --- a/conf/init.lynx.rc +++ b/conf/init.lynx.rc @@ -54,6 +54,9 @@ on post-fs-data # Wifi on property:sys.boot_completed=1 write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1 + +on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1 + write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1 # Create directories for wifihal services mkdir /dev/socket/wifihal 0770 wifi wifi chmod 2777 /dev/socket/wifihal