You are not logged in.
Hello,
i got myself a new TP-LINK TL-WN821N 300Mbps USB Dongle which won't work (out of the box) with Archlinux.
The official drivers from http://www.tp-link.com/en/download/TL-W … tml#Driver didn't compile at all.
So i tried these: https://github.com/Mange/rtl8192eu-linux-driver
Which compiled & loaded just fine.
lsusb:
Bus 001 Device 005: ID 2357:0107
kernel:
Linux hostname 4.8.10-1-ARCH #1 SMP PREEMPT Mon Nov 21 11:55:43 CET 2016 x86_64 GNU/Linux
iwconfig:
lo no wireless extensions.
wifi0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig wifi0 up
works fine.
But when i try to connect to my AP
wpa_supplicant -B -iwifi0 -c/etc/wpa_supplicant.conf
it fails with:
Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
nl80211: deinit ifname=wifi0 disabled_11b_rates=0
wifi0: Failed to initialize driver interface
What am i missing?
Thank you guys (and girls) in advance!
Edit:
I also tried ndiswrapper-dkms, but i didn't get any wireless device at all (iwconfig)
Last edited by susse (2016-11-23 19:22:13)
Offline
After playing around a little i managed to get it working:
Adding -Dwext
wpa_supplicant -iwifi0 -c/etc/wpa_supplicant.conf -Dwext
results in
rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
but connects without problems.
Last edited by susse (2016-11-23 18:42:18)
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
You could try out the new rtl8xxxu driver, it usually works much better.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
You could try out the new rtl8xxxu driver, it usually works much better.
URL?
The ones from archlinux won't recognize my wifi dongle
Offline
You blacklist rtl8192eu and (in doubt explicitly) load rtl8xxxu.
With a little "luck", you can tear down the network, unload rtl8192eu and load rtl8xxxu w/o having to edit the system setup.
Online
$ sudo rmmod 8192eu
$ sudo rmmod rtl8192eu
rmmod: ERROR: Module rtl8192eu is not currently loaded
$ sudo modprobe rtl8xxxu
$ sudo iwconfig
lo no wireless extensions.
$
Offline
susse
It should be obvious that the kernel doesn't support your USB wireless device or you would not have needed Mange's github source code
This is the commit to Mange's source code that allowed it to support your device, https://github.com/Mange/rtl8192eu-linu … 36eff1416d
Offline
rtl8xxxu does support 8192eu devices. Try using iw instead of the deprecated iwconfig, also post dmesg output.
rtl8xxxu is a multi-driver for USB devices(RTL8723AU/RTL8723BU/RTL8191EU/RTL8192EU/RTL8188EU/RTL8188RU) (4.3+), for other chips WIP: git-tree
Edit: also check rfkill status.
Last edited by Mr.Elendig (2016-12-02 10:32:32)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
The OP's device was added to linux-next in September http://git.kernel.org/cgit/linux/kernel … 0b99e5568d
You could always check
modinfo rtl8xxxu | grep 0107
To see if that module has support in the currently loaded kernel
Offline
Is it possible to add a new vip:pid combination on the fly? Some drivers allow you to do that.
Edit:
It seems that route is a no go, there is no new_id file for the rtl8xxxu driver. See https://www.kernel.org/doc/Documentatio … fs-bus-usb
Last edited by R00KIE (2016-12-02 13:16:02)
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
After using this Wifi dongle for a while i only have one thing to say: don't buy it (if you plan to use it with linux).
1. It works quite well on a freshly booted PC. But if you plan to use standby features on your PC, the dongle will have big issues keeping up a stable connection/data rates above 30kb/s. My workaround is to unbind and then rebind my USB bridges (or what they are called, echo -n "0000:00:xyz..." > /sys/bus/pci/drivers/ohci-pci/unbind + /sys/bus/pci/drivers/ehci-pci/unbind) before reconnection to my wifi router. Reloading the 8192eu kernel module actually make things worse. Same with ohci_pci, ehci_pci ... kernel modules.
2. From some to time the dongle won't authenticate to my wifi router, while other devices can. I don't know why, but rebooting my *router* helps.
3. Furthermore, i have to reboot my router at least every 1-3 days. The dongle is capable to DoS my wifi's router 2.4ghz channel(s) - so no traffic is send/retrieved to *any* device anymore. New devices cannot connect. Authenticated devices won't retrieve any data anymore. That AP is still listed when scanned. (I'm not even mad - that's amazing!)
Rebooting my router preventive at night won't have any positive effect. I might have to reboot my router again the same day.
My workaround so far: use another wifi dongle.
I'll probably gift this dongle to a person - i don't like.
Offline
Hello everyone. I just found the solution. (For TP-LINK TL-WN821N v4)
*You need to know the version of your device.
You need to install the RTL8192CU driver (Do not confuse with RTL8192EU)
All instability problems in the connection are solved. WORKS!!!
Info? https://wikidevi.com/wiki/TP-LINK_TL-WN821N_v4
Thank you all.
Last edited by bloed (2018-01-15 15:38:26)
Offline