network={
ssid="myssid"
key_mgmt=WPA-PSK
pairwise=TKIP
psk=key
priority=5
}
network={
key_mgmt=NONE
priority=0
}
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=2
ap_scan=1
fast_reauth=1
network={
scan_ssid=1
ssid="myessid"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk=secretkey
priority=5
}
network={
key_mgmt=NONE
priority=0
}
/etc/rc.d/netif restart