Beglebone Black with TP-link wifi dongle


I am working on beaglebone black trying to integrate TP link TL-WN721N Wifi dongle which uses atheros driver.

I am using linux 3.2 kernel with ti-sitara rootfs

The problem is when is type the command

wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf

it shows Successfully initialised wpa_supplicant

but it gets stuck there and i have to give ctrl+c to exit from that ,after that i gave

ifup wlan0

the response was

Sending discover…

Sending discover…

Sending discover…

No lease, failing

after this I repeated the step for wpa_supplicant this time also it gets stuck and when I gave ifup wlan0

this time it got the correct IP and was able to ping…

This cycles was seemed to repeat when I tried connecting any-other wifi networks (ie: wpa_supplicant gets stuck two times and on the second attempt of ifup wlan0 only i will be able to get IP)

here is my /etc/wpa_supplicat.conf file






and my /etc/network/interfaces

The loopback interface

auto lo

iface lo inet loopback

Wired or wireless interfaces

auto eth0

iface eth0 inet static




allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp

wpa-driver wext

wpa-conf /etc/wpa_supplicant.conf

Please help me out of this issue



1.sudo aptitude install wireless-tools
2.sudo ifconfig -a => check you wifi
3.sudo ifconfig wlan0 up =>start
4.sudo iwlist wlan0 scan =>find your wifi
5.sudo wpa_passphrase wifi_name wifi_passwd > /etc/wpa_supplicant.conf
6.sudo vim /etc/network/in*ces
like this


1: # WiFi Example
2: auto wlan0
3: iface wlan0 inet dhcp
4: wpa-ssid "wifi ssid"
5: wpa-psk "password"


7.sudo ifup wlan0

在 2014年2月25日星期二 UTC+8下午7:38:18,HPCR写道: