View previous topic :: View next topic |
Author |
Message |
inch n00b
Joined: 04 Mar 2012 Posts: 17
|
Posted: Thu Jan 31, 2013 9:18 am Post subject: [SOLVED] TP-Link TL-WN821N V3 WLAN Stick |
|
|
Hello, I'm having difficulties getting my TP-Link TL-WN821N V3 WLAN Stick to work.
uname:
Code: | Linux gentoo 3.6.11-gentoo #43 SMP |
lsusb:
Code: | Bus 002 Device 004: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AAR9287] |
I compiled the whole "Device Drivers -> Network device support -> Wireless LAN -> Atheros Wirelss Cards" branch into the kernel and added ar9170.fw htc_7010.fw to /lib/firmware to make them available. The good part is that wlan0 exists after this. I included all drivers because I had no luck with just using ath9k_htc.
However, when using wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf I get the following error messages:
Code: | ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
ioctl[SIOCGIWRANGE]: Invalid argument
ioctl[SIOCGIWMODE]: Invalid argument
ioctl[SIOCSIWAP]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument |
These messages indicate using the wrong driver, right? How do I get this working, which one is the right driver?
Last edited by inch on Sun Feb 03, 2013 3:27 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Feb 01, 2013 9:03 pm Post subject: |
|
|
needed firmware looks to me to be htc_9271.fw and/or htc_7010.fw both of which can coexist and are provided if you Code: | emerge linux-firmware | I would adjust the menuconfig to Quote: | [*] Networking support --->
-*- Wireless --->
--- Wireless
<M> cfg80211 - wireless configuration API
[*] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[ ] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
<M> Common routines for IEEE802.11 drivers
[ ] lib80211 debugging messages
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
-*- Enable LED triggers
[ ] Export mac80211 internals in DebugFS
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features --->
<M> RF switch subsystem support --->
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Atheros Wireless Cards --->
--- Atheros Wireless Cards
[ ] Atheros wireless debugging
< > Atheros 5xxx wireless cards support
[ ] Atheros 5xxx PCI bus support
[ ] Atheros bluetooth coexistence support
< > Atheros 802.11n wireless cards support
<M> Atheros HTC based wireless cards support
[ ] Atheros ath9k_htc debugging
< > Linux Community AR9170 802.11n USB support
< > Atheros mobile chipsets support | and recompile and recopy the kernel and reboot. _________________ Defund the FCC. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Fri Feb 01, 2013 10:38 pm Post subject: |
|
|
You should use -Dnl80211 and not -Dwext
Modern drivers do not support the legacy wireless extensions natively but only through CONFIG_CFG80211_WEXT. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Feb 02, 2013 2:48 am Post subject: |
|
|
-Dnl80211 does work better on the devices that it works on, however I have a couple of 80211n usb adapters that deny nl80211 compatibility, that are happy with wext.. _________________ Defund the FCC. |
|
Back to top |
|
|
inch n00b
Joined: 04 Mar 2012 Posts: 17
|
Posted: Sun Feb 03, 2013 3:27 pm Post subject: |
|
|
Hi guys, the -Dnl80211 and a faulty USB cable were the reason
For future reference and users that might have to go through the setup of the TP-Link TL-WN821N V3 WLAN Stick:
1. Get the linux-firmware package
2. Compile the driver and firmware into your kernel:
Code: | Networking support --->
Wireless --->
[*] cfg80211 - wireless configurration API
[*] Generic IEEE 802.11 Networking Stack (mac80211)
Device Drivers --->
Generic Driver Options --->
[*] Include in-kernel firmware blobs in kernel binary
(htc_7010.fw) External firmware blobs to build into kernel binary
(/lib/firmware) Firmware blobs root directory
Network device support --->
[*] Wireless LAN --->
[*] Atheros Wireless Cards --->
[*] Atheros HTC based wirelss cards support |
3. Set up wpa_supplicant and start it with -Dnl80211
4. ???
5. Profit
Thanks for your help! |
|
Back to top |
|
|
|