humitos / pyfispot

Hotspot running with Python 2.7 + Flask + nginx + uWSGI + dnsmasq + hostapd
GNU General Public License v2.0
60 stars 23 forks source link

Auto-reconnect if link goes down #14

Closed humitos closed 8 years ago

humitos commented 8 years ago

Sometimes it happens that the link goes down for some reason. So, we want to auto-reconnect.

humitos commented 8 years ago

I'm not sure if this still happens after closing #13. Let's wait a couple of week before closing this one.

humitos commented 8 years ago

This still happens. In fact, when the link is lost we are receiving this message in syslog and we have to restart the interface :(

Oct 20 12:49:58 raspberrypi wpa_supplicant[6509]: wlan1: Failed to initiate AP scan
Oct 20 12:49:59 raspberrypi wpa_supplicant[6509]: wlan1: Failed to initiate AP scan
Oct 20 12:50:00 raspberrypi wpa_supplicant[6509]: wlan1: Failed to initiate AP scan

Restart interface:

sudo ifdown --force wlan1
sudo ifconfig wlan1 down
sudo ifup wlan1
humitos commented 8 years ago

Done here: https://github.com/humitos/pyfispot/blob/master/docs/archarmlinux.md#autoconnect-to-known-wifi-networks