Wireless interface used for hotspot loses IP address
Hello,
I am running Raspbian on a Raspberry Pi, and I use udhcpd and hostapd to make a wireless hotspot. After some configuration, I got it to work perfectly for a few days, but then an incredibly strange, at least to me, problem started to occur. My Pi would not accept any connections after reboot. After some playing around, I figured out a workaround - I had to change the wireless channel in hostapd.conf after reboot and restart the service... what?! This seemed ridiculous so after a few test I discovered that after reboot, if I don't change the channel, the first time a device tries to connect, the wlan0 interfaces loses its IP address. How?! It is set up in /etc/network/interfaces with static IP address and netmask.
Any wild (or well calculated educated) guesses on this would be much appreciated...
|