LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-14-2010, 04:39 PM   #1
Mortuus
LQ Newbie
 
Registered: Mar 2010
Location: Madrid, Spain
Distribution: Debian Testing
Posts: 21

Rep: Reputation: 0
TL-WN821N Wifi usb doesn't work correctly on Debian Testing.


Hi all.

I bought a TL-WN821N for having wifi N.

This usb uses ar9170 driver, but before I installed it, it was using another driver but it was a bit unstable, it always lost the connection several times. So I installed the driver following this instructions from the Debian Wiki.

Code:
Squeeze
1.	Acquire the AR9170 one stage firmware: 
$ wget http://www.kernel.org/pub/linux/kernel/ ... /ar9170.fw
2.	Install the firmware: 
3.	$ su
4.	# mkdir /usr/local/lib/firmware
# mv ar9170.fw /usr/local/lib/firmware

If not already performed, connect the device to your system. 
6.	As the driver may already be loaded, reinsert the module to access installed firmware: 
# modprobe -r ar9170usb ; modprobe ar9170usb
7.	Verify your device has an available interface: 
# iwconfig
8.	Raise the interface to activate the radio, for example: 
# ifconfig wlan0 up
9.	Configure your wireless interface as appropriate.
Then, to configure, I did this:
Code:
2.	Open /etc/network/interfaces in a text editor: 
# sensible-editor /etc/network/interfaces
3.	Define appropriate stanzas for your wireless interface, along with the SSID and PSK. For example: 
4.	auto wlan0
5.	iface wlan0 inet dhcp
6.	 wpa-ssid mynetworkname
wpa-psk mysecretpassphrase
The "auto" stanza will bring your interface up at system startup. If not desired, remove or comment this line. 
7.	Save the file and exit the editor. 
8.	Bring your interface up. This will start wpa_supplicant as a background process. 
# ifup wlan0
But still doesn't work correctly, now it doesn't connect. Looking to 'dmesg', I got this message every time:

Code:
[ 419.506627] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 419.509224] wlan0: authenticated
[ 419.509262] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 419.511976] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 419.511985] wlan0: associated
[ 419.544045] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
[ 420.930070] wlan0: direct probe to AP 94:0c:6d:xx:xx:xx (try 1)
[ 420.934837] wlan0: direct probe responded
[ 420.934847] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 420.937445] wlan0: authenticated
[ 420.937485] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 420.940183] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 420.940193] wlan0: associated
[ 420.972050] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
[ 422.342277] wlan0: direct probe to AP 94:0c:6d:xx:xx:xx (try 1)
[ 422.347191] wlan0: direct probe responded
[ 422.347201] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 422.349796] wlan0: authenticated
[ 422.349836] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 422.352668] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 422.352678] wlan0: associated
[ 422.384061] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
[ 423.761810] wlan0: direct probe to AP 94:0c:6d:xx:xx:xx (try 1)
[ 423.767044] wlan0: direct probe responded
[ 423.767054] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 423.770644] wlan0: authenticated
[ 423.770683] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 423.773398] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 423.773408] wlan0: associated
[ 423.809075] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
[ 425.180187] wlan0: direct probe to AP 94:0c:6d:xx:xx:xx (try 1)
[ 425.187891] wlan0: direct probe responded
[ 425.187901] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 425.193379] wlan0: authenticated
[ 425.193419] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 425.198877] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 425.198887] wlan0: associated
[ 425.233067] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
[ 426.603925] wlan0: direct probe to AP 94:0c:6d:xx:xx:xx (try 1)
[ 426.613247] wlan0: direct probe responded
[ 426.613257] wlan0: authenticate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 426.623689] wlan0: authenticated
[ 426.623727] wlan0: associate with AP 94:0c:6d:xx:xx:xx (try 1)
[ 426.640477] wlan0: RX AssocResp from 94:0c:6d:xx:xx:xx (capab=0x431 status=0 aid=1)
[ 426.640487] wlan0: associated
[ 426.684565] wlan0: deauthenticating from 94:0c:6d:xx:xx:xx by local choice (reason=3)
If you need another log, or whatever, I will be pleased to provide it.

Thanks in advance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] port forwarding does not work with linksys WRT54GS wireless router debian testing mf93 Linux - Networking 14 11-14-2009 07:20 PM
[SOLVED] wifi doesn't work with debian on laptop mrj Debian 13 08-05-2009 11:19 PM
Anyone manage to get network bonding mode 0 to work with Debian 'Testing'? Akhran Linux - Networking 0 10-26-2006 06:18 PM
which USB wifi adapters are known to work good? dimgr Linux - Wireless Networking 2 02-26-2005 11:48 AM
HP Deskjet 3322 and Debian Testing - USB device not found? OwlManAtt Linux - Hardware 1 05-15-2004 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration