WN722N Refuses to Work

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

WN722N Refuses to Work

Postby randolf101 » Sun Jul 08, 2012 12:45 pm

Hi Guys,

I've recently purchased this TP-Link WN722N wifi adapter to work with my Goflex Home running on Archlinux-Arm5vTe. Since purchase haven't quite got it to work. It authenticates and associates to the AP alright using wpa_supplicant command and netcfg. But when I run a dhcpcd wlan0 it fails to get me a valid IP and pulls a 169.254.x.x on me. I've seen you guys resolve tedious problems than these so I feel mine will not take much of your time.

Here are few pasties for reference, do ask for more if you need any:
Please help me out guys!!

$this->bbcode_second_pass_code('', '[root@alarm ~]# lsusb -v
Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
idVendor 0x0cf3 Atheros Communications, Inc.
idProduct 0x9271 AR9271 802.11n
bcdDevice 1.08
iManufacturer 16 ATHEROS
iProduct 32 USB2.0 WLAN
iSerial 48 12345
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 60
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 6
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

[root@alarm ~]# lsmod
Module Size Used by
ipv6 259702 16
ath9k_htc 52522 0
ath9k_common 1750 1 ath9k_htc
ath9k_hw 334697 2 ath9k_common,ath9k_htc
ath 13797 3 ath9k_hw,ath9k_common,ath9k_htc
mac80211 364072 1 ath9k_htc
cfg80211 154815 3 mac80211,ath,ath9k_htc
compat 4252 5 cfg80211,mac80211,ath9k_hw,ath9k_common,ath9k_htc
rfkill 14400 1 cfg80211
mv_cesa 9120 0


[root@alarm ~]# ifconfig wlan0
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500 metric 1
ether 90:f6:52:14:ba:1e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0 Scan completed :
Cell 01 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=45/70 Signal level=-65 dBm
Encryption key:on
ESSID:"my_wireless"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000005d5f9b7184
Extra: Last beacon: 350ms ago
IE: Unknown: 00084E4D494D535F4833
IE: Unknown: 010482848B96
IE: Unknown: 030106
IE: Unknown: 2A0104
IE: Unknown: 32080C1218243048606C
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD07000C4303000000


[root@alarm ~]# cat /etc/wpa_supplicant.conf
network={
ssid="my_wireless"
#psk="passphrase"
psk=fba5a669904c99eebb810d4734ba4ed3e1019b07fcdcab9d620b61c6d687b6be
}


[root@alarm ~]# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
[root@alarm ~]# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"my_wireless"
Mode:Managed Frequency:2.437 GHz Access Point:
Bit Rate=48 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=49/70 Signal level=-61 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon:0

[root@alarm ~]# dhcpcd wlan0
dhcpcd[668]: version 5.5.6 starting
dhcpcd[668]: wlan0: sending IPv6 Router Solicitation
dhcpcd[668]: wlan0: checking for 169.254.19.72
dhcpcd[668]: wlan0: sending IPv6 Router Solicitation
dhcpcd[668]: wlan0: using IPv4LL address 169.254.19.72
dhcpcd[668]: forked to background, child pid 689


[root@alarm ~]# cat /etc/conf.d/dhcpcd
#
# Arguments to be passed to the DHCP client daemon
#

DHCPCD_ARGS="-q "


[root@alarm ~]# dmesg | tail
[ 22.070767] eth0: no IPv6 routers present
[ 538.338943] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 690.927111] wlan0: authenticate with
[ 691.017965] wlan0: send auth to (try 1/3)
[ 691.022140] wlan0: authenticated
[ 691.070776] wlan0: associate with (try 1/3)
[ 691.076006] wlan0: RX AssocResp from (capab=0x411 status=0 aid=7)
[ 691.076021] wlan0: associated
[ 691.081955] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 701.430747] wlan0: no IPv6 routers present')
randolf101
 
Posts: 5
Joined: Fri Jun 08, 2012 4:27 pm

Re: WN722N Refuses to Work

Postby randolf101 » Fri Jul 13, 2012 12:51 pm

Com'on someone must have this wifi adapter?

please help me out here !!
randolf101
 
Posts: 5
Joined: Fri Jun 08, 2012 4:27 pm

Re: WN722N Refuses to Work

Postby pepedog » Fri Jul 13, 2012 6:53 pm

You got wireless-regdb installed (edit /etc/conf.d/wireless-regdb for your country)
What about wireless_tools and wpa_actiond
wicd works good
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: WN722N Refuses to Work

Postby randolf101 » Sat Jul 14, 2012 4:48 am

I already have wireless_tools and wpa_actiond installed.

Haven't tried with wicd yet.

i tried the promiscuous mode and voila !! it works .. fetched me a genuine dhcp ip.

but here comes that bad part - I can't see my rpi on the network, neither can I ping the acquired IP nor can I ssh into it !

To access it now i'm using my laptop's ethernet port set at 192.168.2.2 ----and the rpi's ethernet using a lan cable --- 192.168.2.3 ... and using the wlan0 on the side which has acquired dhcp ip
randolf101
 
Posts: 5
Joined: Fri Jun 08, 2012 4:27 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests