Skip to content

Instantly share code, notes, and snippets.

@brownman
Created June 11, 2015 13:51
Show Gist options
  • Save brownman/120bbe509e1162e7b74b to your computer and use it in GitHub Desktop.
Save brownman/120bbe509e1162e7b74b to your computer and use it in GitHub Desktop.
wifi cli connect
set -u
ssid=Linnovate
echo type the password for connecting to $ssid
read password
sudo wpa_passphrase $ssid $password > /tmp/wpa0
cat /tmp/wpa0
sudo rfkill unblock all
sudo wpa_supplicant -Dwext -iwlan0 -c/tmp/wpa0
#Successfully initialized wpa_supplicant
#ioctl[SIOCSIWENCODEEXT]: Invalid argument
#ioctl[SIOCSIWENCODEEXT]: Invalid argument
#wlan0: Trying to associate with d4:68:4d:8e:c1:8c (SSID='Linnovate' freq=5320 MHz)
#ioctl[SIOCSIWFREQ]: Device or resource busy
#wlan0: Association request to the driver failed
#wlan0: Associated with d4:68:4d:8e:c1:8c
#wlan0: WPA: Key negotiation completed with d4:68:4d:8e:c1:8c [PTK=CCMP GTK=CCMP]
#wlan0: CTRL-EVENT-CONNECTED - Connection to d4:68:4d:8e:c1:8c completed [id=0 id_str=]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment