Hi,
I just setup FreeBSD 8.2 and want to connect to only one wireless network (our houselan).
the /etc/wpa_supplicant.conf looks like this:
It works fine, if I run:
Then "ifconfig blabla" and "route add default" etc. and I am on the internet.
now, my /etc/rc.conf looks like this:
It always connects to the next unsecure network, but I understand ap_scan=2 with scan_ssid=1 will only use configured networks in the wpa_supplicant.conf. We have those unsecured BTFON and BTOpenzone networks in the area and it always uses those instead of our secured network.
wpa_supplicant seems to ignore the wpa_supplicant.conf, if I use the options in rc.conf. Can I just put the lines to start wpa_supplicant manually into my rc.conf, like
?
I just setup FreeBSD 8.2 and want to connect to only one wireless network (our houselan).
the /etc/wpa_supplicant.conf looks like this:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=2
network={
ssid="houelan"
key_mgmt=WPA-PSK
scan_ssid=1
psk="somesecret_stuff_thingy"
}
It works fine, if I run:
Code:
# ifconfig wlan0 create wlandev ath0
# wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0
now, my /etc/rc.conf looks like this:
Code:
wlans_ath0="wlan0"
ifconfig_wlan0="WPA" # also tried wpa_supplicant="YES", same result
ifconfig_wlan0="inet 192.168.1.100 netmask 255.255.255.0"
defaultrouter="192.168.1.254"
It always connects to the next unsecure network, but I understand ap_scan=2 with scan_ssid=1 will only use configured networks in the wpa_supplicant.conf. We have those unsecured BTFON and BTOpenzone networks in the area and it always uses those instead of our secured network.
wpa_supplicant seems to ignore the wpa_supplicant.conf, if I use the options in rc.conf. Can I just put the lines to start wpa_supplicant manually into my rc.conf, like
Code:
wpa_supllicant -B -c /etc/wpa_supplicant.conf -i wlan0