Beglebone Black with TP-link wifi dongle

96 views
Skip to first unread message

HPCR

unread,
Feb 25, 2014, 6:38:18 AM2/25/14
to beagl...@googlegroups.com

Hi

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

 

network={

        ssid="UTStarcom"

        #psk="123force"

        psk=44d83e5c96bd39f47b54625d80b80c79d5b14430d424fdf6636365901b01ab14

}

 

and my /etc/network/interfaces


# The loopback interface

     auto lo

     iface lo inet loopback

# Wired or wireless interfaces

     auto eth0

iface eth0 inet static

     address 192.168.2.30

     netmask 255.255.255.0

     gateway 192.168.2.1

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

Regards

HPCR

刘杰

unread,
Apr 25, 2015, 4:43:11 AM4/25/15
to beagl...@googlegroups.com
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写道:
Reply all
Reply to author
Forward
0 new messages