First, determine you hardware by typing:
#pciconf -lv
In my case it tells me - PRO/Wireless 2200BG Network Connection
In order to get wireless working:
pkg_add -r iwi-firmware
pkg_add -r iwi-firmware-kmod
pkg_add -r wpa_supplicant
Create startup script in /usr/local/etc/rc.d
vi /usr/local/etc/rc.d/WIFI.sh
#!/bin/sh
echo Loading Wireless Driver...
kldload -v if_iwi //This will load driver for Wireless.
echo Bringing Wireless Interface UP...
ifconfig iwi0 up
echo Loading WPA Supplicant...
wpa_supplicant -i iwi0 -c /etc/wpa_supplicant.conf &
# & parameter will make this line of code working in background.
Make executable:
chmod 755 WIFI.sh
Create wpa_supplicant.conf file and add parameters of your AP.
cat /etc/wpa_supplicant.conf
network={
ssid="YOUR_SIDE"
psk="YOUR_PARAPHRASE"
}
Edit /etc/rc.conf in order to add following line:
ifconfig_iwi0="YOUR_SID DHCP"
#Don't forget DHCP keyword!
Done!
We have 3 guests and no members online