wpa_supplicant auto reconnect on raspberry pi:

  • edit /etc/default/ifplugd and change HOTPLUG_INTERFACES to "" (this prevents ifplugd from automatically killing wpa_supplicant when we lose a connection)
  • when dealing with weak signals, configuring the access point to operate in 11g mode (instead of 11ng) seems to increase the range
  • /etc/network/interfaces:
auto lo
iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
	wpa-driver nl80211,wext
	wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
	pre-up iwconfig $IFACE power off

iface lighting inet dhcp
	post-up /etc/init.d/olad restart

iface home inet dhcp
	post-up /etc/init.d/olad restart
  • /etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
  ssid="lighting"
  #scan_ssid=1 # for networks which don't broadcast ssid
  psk="YOUR_PASSWORD_HERE"
  priority=10
  id_str="lighting"
}

#network={
#  ssid="YOUR_SSID_HERE"
#  psk="YOUR_PASSWORD_HERE"
#  id_str="home"
#}
computer/wpa_supplicant_network_roaming.txt · Last modified: 2013/03/20 23:50 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS