Connecting to WPA(2) using wpa_supplicant and atheros chipset -- ubuntu

Been hacking at this all day, it’s also the 3rd card so I got a few more already invested but not giving up this time

I have a TP LINK TL-WN722N with atheros chipset AR9271
I have a beaglebone black running ubuntu 13.04 arm

I’ve followed upwards of a dozen different tutorials with a number of links below to different references

I can connect to a wireless router with security disabled using iwconfig

I cannot connect to anything with WPA 1 or 2

wpa_supplicant.conf looks like

`

network={
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
ssid=“MYSSID”
#psk=“supersecretpassword”
psk=f2b34bb6b0e3ec1747325fac94ce0476a30911e08cf582df472d5df76e51dcad
}

`

so when I run

`

wpa_supplicant -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf

`

I get

`

ioctl[SIOCSIWENCODEEXT]: Invalid argument

ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Failed to initiate AP scan
wlan0: Trying to associate with 00:00:00:00:00:00 (SSID=‘MYSSID’ freq=2437 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
ioctl[SIOCSIWESSID]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with 00:00:00:00:00:00
wlan0: WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
wlan0: WPA: Could not verify EAPOL-Key MIC - dropping packet
wlan0: Authentication with 00:00:00:00:00:00 timed out.

`

any ideas?

tried a number of variations of the above, can copy & paste from history if it will be useful

hi Alvin,

on my /etc/network/interfaces i have

auto wlan0

iface wlan0 inet dhcp

wpa-driver wext

wpa-conf /etc/wpa_supplicant.conf

on my wpa_supplicant.conf i have

network={

ssid=“your ssid”

psk=“your pass”

priority=10 # only use if you need to have one or more wifi

restart or

ifdown wlan0
ifup wlan0

if is working.

please let me know if works for you. i did some other thinks but i dont know if it was necessary

Hi Alvin,

this was working

http://askubuntu.com/questions/138472/how-do-i-connect-to-a-wpa-wifi-network-using-the-command-line

but if you would like to use wlan as start your interface and wpa_supplicant.conf must be ok.