Quote:
Originally Posted by KristianR
after the wakeup I get the following errors
Code:
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
Code:
while :
do
#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 192.168.0.236
#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
done
I think you can adapte
Warning i use static ip (dhcp take many time)
For dhcp comment ifconfig eth0 add 192.168.0.236
and uncomment udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q