Try this:
Code:
echo “ctrl_interface=DIR=/var/run/wpa_supplicant” > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_passphrase “your-ssid-or-network-name” >> /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -Dnl80211 -iwlan1 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
Note: Be sure to substitute your actual SSID for the obvious placeholder in the second line. Also, after running the second line, you will get a blank blinking cursor. Type your network password/encryption key at that prompt. You may optionally edit the /etc/wpa_supplicant/wpa_supplicant.conf file, and remove the lines that start with a # symbol. They are just notes, and aren?t needed to connect.
I hope that helps.