The tl;dr version: For a specific WiFi AP, I can connect directly from the command line but not via wpa_supplicant.conf. That's the puzzle, why won't wpa_supplicant.conf work?
The full version:
This particular AP does not require a passphrase.
Here's the two commands to connect to the WiFi.
For this to work, I have to comment this line in rc.conf:
As said, above works. Here's proof:
Here are two wpa_supplicant.conf files that I tried:
... and also ...
I'd prefer to use wpa_supplicant.conf here but don't see how.
Question: what is missing from wpa_supplicant.conf to make it work with this AP?
Bonus question: is there a way to specify a psk through the ifconfig command?
The full version:
This particular AP does not require a passphrase.
Here's the two commands to connect to the WiFi.
ifconfig wlan0 down ssid 'BRpublic' channel 1 bssid f8:d9:b8:2a:a0:88 up
dhclient wlan0
For this to work, I have to comment this line in rc.conf:
#ifconfig_wlan0="WPA DHCP"
As said, above works. Here's proof:
Code:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=0
ether 58:91:cf:7d:1c:7a
inet 10.228.183.130 netmask 0xfffffc00 broadcast 10.228.183.255
groups: wlan
ssid BRpublic channel 1 (2412 MHz 11g) bssid f8:d9:b8:2a:a0:88
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 10 scanvalid 60 protmode CTS wme
parent interface: iwm0
media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
status: associated
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Here are two wpa_supplicant.conf files that I tried:
Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1
network={
ssid="BRpublic"
}
... and also ...
Code:
network={
ssid="BRpublic"
}
I'd prefer to use wpa_supplicant.conf here but don't see how.
Question: what is missing from wpa_supplicant.conf to make it work with this AP?
Bonus question: is there a way to specify a psk through the ifconfig command?