You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.9 KiB

on post-fs-data
# for boot_wlan
chown wifi wifi /sys/kernel/boot_wlan/boot_wlan
chmod 0640 /sys/kernel/boot_wlan/boot_wlan
# for WIFI qcwlanstate
chown wifi wifi /sys/wifi/qcwlanstate
chmod 0644 /sys/wifi/qcwlanstate
chown wifi wifi /sys/wifi/wifiver
chmod 0640 /sys/wifi/wifiver
chown wifi wifi /sys/wifi/softap
chmod 0640 /sys/wifi/softap
symlink /data/vendor/ramdump /data/vendor/log/wifi/ramdump
chown system wifi /data/vendor/log/wifi/ramdump
# for WIFI Antenna
write /data/vendor/conn/.wificable.info E
chown system root /data/vendor/conn/.wificable.info
chmod 0666 /data/vendor/conn/.wificable.info
chown wifi root /sys/wifi/wificable
chmod 0664 /sys/wifi/wificable
# for WIFI TRP/TIS
chown wifi wifi /data/vendor/conn/.psm.info
chmod 0644 /data/vendor/conn/.psm.info
chown wifi wifi /sys/wifi/pm
chmod 0640 /sys/wifi/pm
# for WIFI Antenna Selection
chown wifi wifi /data/vendor/conn/.ant.info
chmod 0644 /data/vendor/conn/.ant.info
chown wifi wifi /sys/wifi/ant
chmod 0640 /sys/wifi/ant
on property:vendor.wlan.ramdump_mode=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
stop vendor.ss_ramdump
on property:vendor.wlan.ramdump_mode=2
write /sys/module/subsystem_restart/parameters/enable_ramdumps 2
stop vendor.ss_ramdump
#start vendor.ss_ramdump
on property:vendor.wlan.ramdump_mode=3
write /sys/module/subsystem_restart/parameters/enable_ramdumps 3
stop vendor.ss_ramdump
#start vendor.ss_ramdump
on property:sys.boot_completed=1
chown wifi wifi /sys/module/wlan/parameters/fwpath
chmod 0644 /sys/module/wlan/parameters/fwpath
chown wifi wifi /sys/module/wlan/parameters/con_mode
chmod 0644 /sys/module/wlan/parameters/con_mode
on boot
# for wlan FTM app
service ftm_ptt /system/bin/ftm_ptt -d
user root
group radio system
disabled