修改 /etc/rc.conf 写入
静态ip
wlans_ath0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.100 netmask 255.255.255.0"
dhcp 获取
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"
wpa 配置 /etc/wpa_supplicant.conf
network={
ssid="YourAPssid"
psk="YourAPpassword"
}
完成,可以上网喽