Ubuntu Pastebin

Paste from rsalveti at Thu, 19 Mar 2015 19:15:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
init.flo.rc -> android init script for flo
service wcnss_init /system/bin/sh /system/etc/init.flo.wifi.sh
    class main
    user system
    group system wifi
    oneshot

service init_wlan /system/bin/sh /system/etc/init_wlan.sh
    class late_start
    user root
    group root
    disabled
    oneshot

rsalveti@evasys:~/projects/phablet/android/build/phablet/device/asus/flo$ cat init.flo.wifi.sh 
#!/system/bin/sh

# Workaround for conn_init not copying the updated firmware
rm /data/misc/wifi/WCNSS_qcom_cfg.ini
rm /data/misc/wifi/WCNSS_qcom_wlan_nv.bin

logwrapper /system/bin/conn_init

echo 1 > /dev/wcnss_wlan

rsalveti@evasys:~/projects/phablet/android/build/phablet/device/asus/flo$ cat init_wlan.sh 
#!/system/bin/sh

for i in 1 2 3; do
    # sleep first to avoid issue when called after conn_init
    sleep 1
    if [ ! -f /sys/devices/platform/wcnss_wlan.0/net/wlan0/address ]; then
        echo sta > /sys/module/wlan/parameters/fwpath
    else
        break
    fi
done

if [ ! -f /sys/devices/platform/wcnss_wlan.0/net/wlan0/address ]; then
    # Driver is in a broken state, give it a few seconds and try to reload
    echo 1 > /dev/wcnss_wlan
    sleep 2
    echo sta > /sys/module/wlan/parameters/fwpath
fi
Download as text