Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] TP-Link TL-WN821N V3 WLAN Stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
inch
n00b
n00b


Joined: 04 Mar 2012
Posts: 17

PostPosted: Thu Jan 31, 2013 9:18 am    Post subject: [SOLVED] TP-Link TL-WN821N V3 WLAN Stick Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6593
Location: Goose Creek SC

PostPosted: Fri Feb 01, 2013 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1668
Location: Berlin, Germany

PostPosted: Fri Feb 01, 2013 10:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6593
Location: Goose Creek SC

PostPosted: Sat Feb 02, 2013 2:48 am    Post subject: Reply with quote

-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
View user's profile Send private message
inch
n00b
n00b


Joined: 04 Mar 2012
Posts: 17

PostPosted: Sun Feb 03, 2013 3:27 pm    Post subject: Reply with quote

Hi guys, the -Dnl80211 and a faulty USB cable were the reason 8O

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum