on post-fs-data
    # for fwpath
    chown wifi wifi /sys/module/wlan/parameters/fwpath
    chmod 0644 /sys/module/wlan/parameters/fwpath

	# 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

    # for WIFI con_mode
    chown wifi wifi /sys/module/wlan/parameters/con_mode
    chmod 0644 /sys/module/wlan/parameters/con_mode
	
    chown wifi wifi /sys/wifi/wifiver
    chmod 0640 /sys/wifi/wifiver
    chown wifi wifi /sys/wifi/softap
    chmod 0640 /sys/wifi/softap

    # 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/devices/platform/qcom,cnss-qca6390/recovery 1
    stop vendor.cnss_dumpcollector

on property:vendor.wlan.ramdump_mode=2
    write /sys/devices/platform/qcom,cnss-qca6390/recovery 1
    stop vendor.cnss_dumpcollector
    start vendor.cnss_dumpcollector

on property:vendor.wlan.ramdump_mode=3
    write /sys/devices/platform/qcom,cnss-qca6390/recovery 0
    stop vendor.cnss_dumpcollector
    start vendor.cnss_dumpcollector

on property:sys.boot_completed=1
    # Chown enable or disable GRO
    chown system system /sys/kernel/wifi/dp_aggregation
    chmod 0664 /sys/kernel/wifi/dp_aggregation

on boot
# for wlan FTM app
service ftm_ptt /system/bin/ftm_ptt -d
    user root
    group radio system
    disabled
