Last updated: 2019-02-24
There is a program that helps with this: WiFi Networks Manager
pkg install wifimgr
You need to make sure your hardware driver gets loaded into the kernel. If you selected this at setup you won't need to add this.
Add to /etc/rc.conf:
kld_list="if_iwm"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
Your connection info goes in /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1
network={
ssid="wifi-access-point-ssid-goes-here"
psk="p4ssw0rd"
}
Restart the service
service netif restart
Some discussion on wifi networking.
Something need fixing? Contact me: