====== Resources ======
* https://srobb.net/fbsdquickwireless.html
* [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant]]
* [[https://man.freebsd.org/cgi/man.cgi?query=wpa_supplicant.conf&apropos=0&sektion=0&manpath=FreeBSD+14.2-RELEASE+and+Ports&arch=default&format=html|wpa_supplicant.conf]]
* [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]]
====== rc.conf ======
su -
ee '/etc/rc.conf'
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.150 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
===== DHCP =====
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA DHCP"
#ifconfig_ue0="SYNCDHCP"
====== wpa_supplicant.conf ======
* :!: Blank line between ''ssid'' and ''key_mgmt'' is for ''psk='' from [[#wpa_passphrase]]
ee '/etc/wpa_supplicant.conf'
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1
network={
ssid="Highgate (5GHz)"
key_mgmt=WPA-PSK
priority=4
}
network={
ssid="Izaro"
key_mgmt=WPA-PSK
priority=3
}
network={
ssid="Kitava (iPhone XR)"
key_mgmt=WPA-PSK
priority=2
}
# End
===== wpa_passphrase =====
wpa_passphrase 'Highgate (5GHz)'
wpa_passphrase 'Izaro'
wpa_passphrase 'Kitava (iPhone XR)'
====== Network Restart ======
****
su 'root' -c "service 'netif' restart && '/etc/netstart'"
====== Etc ======
sysctl 'net.wlan.devices'
dhclient 'wlan0'
===== Default =====
* Included with fresh-install, might be useful for connecting to random APs?
network={
priority=0
key_mgmt=NONE
}