sudo ifconfig wlan0 down (wlan0 is network card name fing yours using ifconfig) sudo iwconfig wlan0 mode managed sudo ifconfig wlan0 up sudo service network-manager restart