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
This commit is contained in:
Victor Hsu 2022-09-02 13:21:20 +00:00 committed by TreeHugger Robot
parent bd7e8ead24
commit cd57763357

View file

@ -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