Skip to content

Instantly share code, notes, and snippets.

@deckerego
Created December 6, 2013 17:10
Show Gist options
  • Save deckerego/7828478 to your computer and use it in GitHub Desktop.
Save deckerego/7828478 to your computer and use it in GitHub Desktop.
For some reason Cisco' WAPs using WPA2 have issues negotiating with some Linux wlan adapters; it seems the initial negotiation fails, and rather than re-try the adapter just quits and assumes you have bad settings. The Cisco WAP seems to (usually) reject the first connection attempt and then accept subsequent ones. The following seems to do an a…
iwconfig wlan0 mode managed
iwpriv wlan0 set AuthMode=WPA2PSK
iwpriv wlan0 set EncrypType=AES
iwconfig wlan0 essid "waps_ssid"
iwpriv wlan0 set WPAPSK="waps_wpa2_password"
iwconfig wlan0 essid "waps_ssid"
iwconfig wlan0 mode managed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment