openmiko / openmiko

Open source firmware for Ingenic T20 based devices such as WyzeCam V2, Xiaomi Xiaofang 1S, iSmartAlarm's Spot+ and others.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WiFi not connecting due to udhcpc exiting when slow to connect to WiFi

dgesswein opened this issue · comments

With v0.0.40 if initial connection takes too long udhcpc exits so when WiFi finally connects it doesn't get an IP address so can't access camera.

What I did to fix this is remove the -n in /etc/init.d/S35wifi and copy changed file to sdcard overlay.
# -n exit if lease is not obtained

udhcpc -i wlan0 -b -A 10 -S -t 6 -n -x hostname:$HOSTNAME

Still have underlying issue of when camera restarts but Raspberry PI doesn't the hostapd keeps rejecting the camera attempt to associate. Works if delete station with iw dev wlan0 station del macaddr on Raspberry PI