Arggh, pesky thing, wpa_supplicant continues to fail on boot, even though I can start it manually. In fact as soon as I log in after reboot all I need to do is run wpa_supplicant and the network becomes associated and available.
In /etc/rc.conf I am now using:
Code:
wpa_supplicant_enable="YES"
wlans_upgt0="wlan0"
ifconfig_wlan0="inet 10.0.1.100 netmask 255.255.255.0 ssid thewirelessssid country AU channel 11"
# ifconfig_wlan0_alias0="inet 10.0.1.101 netmask 255.255.255.255 ssid thewirelessssid"
# ifconfig_wlan0_alias1="inet 10.0.1.102 netmask 255.255.255.255 ssid thewirelessssid"
# ifconfig_wlan0_alias2="inet 10.0.1.103 netmask 255.255.255.255 ssid thewirelessssid"
# ifconfig_wlan0_alias3="inet 10.0.1.104 netmask 255.255.255.255 ssid thewirelessssid"
# ifconfig_wlan0="country AU"
# ifconfig_wlan0="ssid thewirelessssid"
# ifconfig_wlan0="WPA SYNCDHCP"
In /boot/loader.conf:
Code:
if_upgt_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
In /etc/wpa_supplicant.conf:
Code:
network={
ssid="thewirelessssid"
scan_ssid=1
key_mgmt=WPA-PSK
psk="theverysecretwirelesswpakey"
}
I can run wpa_supplicant easily like this and it works:
> wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
When BSD was starting supplicant on boot it was being run like this:
> /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_s
Can anyone tell me why supplicant is not running on start up?