sudo modprobe -r ipw3945 sudo modprobe iwlwifi sudo ifconfig wlan0 up sudo iwconfig wlan0 essid xxxx sudo iwconfig wlan0 channel x sudo iwconfig wlan0 enc xxxxxxxxxx sudo iwconfig wlan0 ap xx:xx:xx:xx:xx:xx sudo dhclient wlan0