aboutsummaryrefslogtreecommitdiff
path: root/rootdir/system/etc/init.qcom.wifi.sh
blob: ea830271341fc6156715ad7ddc5e84a92811d94f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/system/bin/sh

if [ -e /data/misc/wifi/WCNSS_qcom_wlan_cal.bin ]; then
    calparm=`ls /sys/module/wcnsscore/parameters/has_calibrated_data`
    if [ -e $calparm ] && [ ! -e /data/misc/wifi/WCN_FACTORY ]; then
        echo 1 > $calparm
    fi
fi

# There is a device file.  Write to the file
# so that the driver knows userspace is
# available for firmware download requests
echo 1 > /dev/wcnss_wlan
echo $serialno > /sys/devices/fb000000.qcom,wcnss-wlan/serial_number

exit 0