View Single Post
Old 07-16-2016, 01:34 PM   #159
Junior Member
sifourquier began at the beginning.
Posts: 1
Karma: 10
Join Date: Jul 2016
Device: Kobo glo HD
Originally Posted by KristianR View Post
after the wakeup I get the following errors
wakeup from "mem" at Mon Mar  7 19:22:23 2016

wlarm_le: wl driver adapter not found
wlarm_le: wl driver adapter not found
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCGIWRANGE]: Invalid argument
ioctl[SIOCGIWMODE]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument
udhcpc (v1.22.0.kobo) started
Sending discover...
Sending discover...
Hi I make a other sript and i have sam error but after long try a have restor wifi

while :
    #echo "ch 4" > /sys/devices/platform/pmic_light.1/lit
    #echo "dc 4" > /sys/devices/platform/pmic_light.1/lit
    rmmod sdio_wifi_pwr
    rmmod dhd
    sleep 1
    insmod /drivers/mx6sl-ntx/wifi/sdio_wifi_pwr.ko
    insmod /drivers/mx6sl-ntx/wifi/dhd.ko
    #ifconfig eth0 up 

    wpa_supplicant -s -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -B 
    ifconfig eth0 add
    #udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q

    sleep 15
    killall wpa_supplicant > /dev/kmsg
    wlarm_le -i eth0 down 
    ifconfig eth0 down
    sleep 5

    rtcwake -a -m mem -s 10
    #echo "dc 0" > /sys/devices/platform/pmic_light.1/lit
    sleep 1
I think you can adapte

Warning i use static ip (dhcp take many time)

For dhcp comment ifconfig eth0 add
and uncomment udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q
sifourquier is offline   Reply With Quote