This is an old revision of the document!
Set up WPA2 network:
nano /etc/wpa_supplicant.conf
Make it look like this:
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 network={ scan_ssid=0 ssid="your_essid" proto=WPA2 key_mgmt=WPA-PSK WPA-EAP pairwise=CCMP TKIP group=CCMP TKIP psk=your_64_hex_characters_long_key }
To get your psk key, run:
wpa_passphrase ssid 'passphrase'
Then, edit the /etc/rc.d/rc.inet1.conf as follows:
IFNAME[1]="ath0" IPADDR[1]="" NETMASK[1]="" USE_DHCP[1]="yes" DHCP_HOSTNAME[1]="ssid" WLAN_WPA[1]="wpa_supplicant" WLAN_WPADRIVER[1]="wext"