iwpriv wlan0 set AuthMode=WPA2PSK
iwpriv .... set ....
apt-get install udhcpc
iwconfig wlan0 essid your-ssid key 'wep-password' udhcpc -i wlan0