Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
snvvOffline
Post subject: [SOLVED] How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 20:58



Joined: 2010-09-13
Posts: 331

Status: Offline
Hello
I got the TL-WN822N Wireless USB Adapter. The problem is that I have to compile the driver from the tp-link site http://www.tp-link.com/en/download/TL-WN822N.html

In the installation instructions see ( https://1drv.ms/b/s!ArfsIIS9Q02JslrmSJAwopAwrQOS )
they say
      Quote:
2. Before compile, make sure the parameters in “makefile.c” is suitable for your
compile environment of your Linux system.
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER := $(shell uname -r)

KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif
Explanation:
KSRC is used to specify the kernel source path for driver compilation.
CROSS_COMPILE is used to specify the toolchain.
ARCH is used to specify the target platform's CPU architectures such as arm, mips,
i386 and so on.



This is the first time to compile anything in debian and I have no idea about the correct parameters.
Any idea?
Thank you


Last edited by snvv on 12.12.2016, 17:05; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 21:22



Joined: 2010-08-25
Posts: 962

Status: Offline
This should already be supported by the kernel via the existing rtl8xxxu module, firmware-realtek will be needed. The vendor driver is not recommended and most likely won't build either (as, according to the download page, was last updated for kernel 3.10).
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 21:46



Joined: 2010-09-13
Posts: 331

Status: Offline
Thank you slh
Unfortunately the device is Ver 4

      Quote:
lsusb
Bus 002 Device 002: ID 2357:0108  


the firmware-realtek is installed and from the net I found the correct driver is  rtl8192eu
but
      Quote:
# modprobe  rtl8192eu   
modprobe: FATAL: Module rtl8192eu not found in directory /lib/modules/4.8.0-12.slh.1-aptosid-amd64
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 23:14



Joined: 2010-08-25
Posts: 962

Status: Offline
Please test http://aptosid.com/slh/rtl8xxxu/, untested, as I don't have access to any devices supported by rtl8xxxu.
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 23:52



Joined: 2010-09-13
Posts: 331

Status: Offline
Thank you slh but it does not load the driver

      Code:
root@snvv:/home/#  
root@snvv:/home/# modprobe rtl8192eu
modprobe: FATAL: Module rtl8192eu not found in directory /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64
root@snvv:/home/# modprobe 8192eu    
modprobe: FATAL: Module 8192eu not found in directory /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64
root@snvv:/home/# modprobe RTl8192EU
modprobe: FATAL: Module RTl8192EU not found in directory /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64
root@snvv:/home/# modprobe rtl8192eu_nic
modprobe: FATAL: Module rtl8192eu_nic not found in directory /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64
root@snvv:/home/# modprobe rtl8192eu
modprobe: FATAL: Module rtl8192eu not found in directory /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64


It was a mistake to get that device.
I will try to return it back and get one with atheros chipset.
It is very unlikely to accept back an open box, but at least it does not cost a fortune.
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 07.12.2016, 23:58



Joined: 2010-08-25
Posts: 962

Status: Offline
Again, your driver is not rtl8192eu (and it will never be, there is no chance of that vendor driver to ever get close to the mainline kernel), the rtl8192eu chipset family is supposed to get supported by rtl8xxxu.

      Code:
$ /sbin/modinfo rtl8xxxu
filename:       /lib/modules/4.8.0-12.slh.2.1-aptosid-amd64/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
firmware:       rtlwifi/rtl8723bu_bt.bin
firmware:       rtlwifi/rtl8723bu_nic.bin
firmware:       rtlwifi/rtl8192eu_nic.bin
firmware:       rtlwifi/rtl8192cufw_TMSC.bin
firmware:       rtlwifi/rtl8192cufw_B.bin
firmware:       rtlwifi/rtl8192cufw_A.bin
firmware:       rtlwifi/rtl8723aufw_B_NoBT.bin
firmware:       rtlwifi/rtl8723aufw_B.bin
firmware:       rtlwifi/rtl8723aufw_A.bin
license:        GPL
description:    RTL8XXXu USB mac80211 Wireless LAN Driver
author:         Jes Sorensen <Jes>
srcversion:     2B0D4D2FBB058163097C2A2
alias:          usb:v7392p7822d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v4855p0091d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0100d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v20F4p624Dd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019pAB2Bd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p330Ad*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p3309d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p3307d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0E66p0020d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0E66p0019d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp2E2Ed*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0846pF001d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0846p9021d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v07B8p8178d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v07AAp0056d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0789p016Dd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0DF6p0070d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0DF6p0061d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p17ABd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v06F8pE035d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0586p341Fd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v050Dp2103d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v050Dp2102d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04BBp0950d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019p1201d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFFCd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFFBd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFF8d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFFAd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFF9d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04F2pAFF7d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:vCDABp8010d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v4856p0091d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v4855p0090d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v20F4p648Bd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019pED17d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019pAB2Ed*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019pAB2Ad*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2019p4902d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p330Bd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p3308d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v13D3p3357d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v103Cp1629d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0EB0p9071d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0DF6p005Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0DF6p0052d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp5088d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp1E1Ed*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0B05p17BAd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0846p9041d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v07B8p8189d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v06F8pE033d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v050Dp1102d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v04BBp094Cd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v1058p0631d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp317Fd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp818Ad*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp817Ed*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp817Dd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp817Bd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp817Ad*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8177d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8170d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8191d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v050Dp1004d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v7392p7811d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp817Fd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8178d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8176d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDApB720d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0109d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0108d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp818Bd*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp0724d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp1724d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v0BDAp8724d*dc*dsc*dp*icFFiscFFipFFin*
depends:        mac80211,usbcore
intree:         Y
vermagic:       4.8.0-12.slh.2.1-aptosid-amd64 SMP preempt mod_unload modversions
parm:           debug:Set debug mask (int)
parm:           ht40_2g:Enable HT40 support on the 2.4GHz band (bool)
parm:           dma_aggregation:Enable DMA packet aggregation (bool)
parm:           dma_agg_timeout:Set DMA aggregation timeout (range 1-127) (int)
parm:           dma_agg_pages:Set DMA aggregation pages (range 1-127, 0 to disable) (int)
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 08.12.2016, 00:08



Joined: 2010-08-25
Posts: 962

Status: Offline
rtl8192eu support in rtl8xxxu is still rather new (and still being improved), so I can't really judge its state at this moment.
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 08.12.2016, 15:47



Joined: 2010-09-13
Posts: 331

Status: Offline
Thank you for the help slh

I apologize for my misunderstanding. I thought the xxx part in rtl8xxxu was an indication for me to find the correct numbers Shocked Very Happy

Anyway rtl8xxxu loads now but it can't find any wifi network

Probably it's not ready for my device yet, or I have done something wrong in the setup

in /etc/modprobe.d/blacklist.conf I blacklisted ath9k . That is the driver for the other device I use

in vi /etc/modules I added rtl8xxxu

in ceni I can see the device (wlx98ded008b53f) but it can't see my wifi router.
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 08.12.2016, 20:51



Joined: 2010-08-25
Posts: 962

Status: Offline
Yes, the module name can be quite misleading (on the other hand it does already cover multiple Realtek USB wlan chipsets, support for rtl8192eu being the latest addition).

With the test kernel 4.8.0-12.slh.2.1-aptosid-amd64, it should load automatically, without you having to load it explicitly. What are the initialisation messages for it in dmesg?

I general, linux driver support for Realtek wlan, in particular for USB wlan (which is produced by Reasil, a different Realtek subsidiary than the one developing their PCI(e) counterparts), is pretty dire - but they've pretty much swamped the aftermarket with devices and squeezed out the more traditional vendors.
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 08.12.2016, 23:17



Joined: 2010-09-13
Posts: 331

Status: Offline
Now I can understand that the name is correct because it supports many different usb devices

The output of dmesag for the rtl8xxxu is:
      Quote:
[ 13.676724] usb 2-2: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[ 13.676727] usb 2-2: 00: 29 81 00 7c 01 40 03 00
[ 13.676729] usb 2-2: 08: 40 74 04 50 14 00 00 00
[ 13.676731] usb 2-2: 10: 29 29 29 2a 2a 2a 29 29
[ 13.676733] usb 2-2: 18: 29 2a 2a f2 ef ef ff ff
[ 13.676735] usb 2-2: 20: ff ff ff ff ff ff ff ff
[ 13.676737] usb 2-2: 28: ff ff ff ff ff ff ff ff
[ 13.676739] usb 2-2: 30: ff ff ff ff ff ff ff ff
[ 13.676741] usb 2-2: 38: ff ff 26 26 25 26 26 26
[ 13.676742] usb 2-2: 40: 25 25 25 25 25 f2 ef ef
[ 13.676744] usb 2-2: 48: ff ff ff ff ff ff ff ff
[ 13.676746] usb 2-2: 50: ff ff ff ff ff ff ff ff
[ 13.676748] usb 2-2: 58: ff ff ff ff ff ff ff ff
[ 13.676750] usb 2-2: 60: ff ff ff ff ff ff ff ff
[ 13.676752] usb 2-2: 68: ff ff ff ff ff ff ff ff
[ 13.676753] usb 2-2: 70: ff ff ff ff ff ff ff ff
[ 13.676755] usb 2-2: 78: ff ff ff ff ff ff ff ff
[ 13.676757] usb 2-2: 80: ff ff ff ff ff ff ff ff
[ 13.676759] usb 2-2: 88: ff ff ff ff ff ff ff ff
[ 13.676761] usb 2-2: 90: ff ff ff ff ff ff ff ff
[ 13.676762] usb 2-2: 98: ff ff ff ff ff ff ff ff
[ 13.676764] usb 2-2: a0: ff ff ff ff ff ff ff ff
[ 13.676766] usb 2-2: a8: ff ff ff ff ff ff ff ff
[ 13.676768] usb 2-2: b0: ff ff ff ff ff ff ff ff
[ 13.676770] usb 2-2: b8: a1 3e 1c 00 00 00 ff ff
[ 13.676772] usb 2-2: c0: ff 01 00 10 00 00 00 ff
[ 13.676773] usb 2-2: c8: 00 00 ff ff ff ff ff ff
[ 13.676775] usb 2-2: d0: 57 23 08 01 e7 47 02 98
[ 13.676777] usb 2-2: d8: de d0 08 b5 3f 0a 03 52
[ 13.676779] usb 2-2: e0: 65 61 6c 74 65 6b 20 0e
[ 13.676781] usb 2-2: e8: 03 38 30 32 2e 31 31 6e
[ 13.676782] usb 2-2: f0: 20 4e 49 43 20 00 00 ff
[ 13.676784] usb 2-2: f8: ff ff ff ff ff ff ff ff
[ 13.676786] usb 2-2: 100: ff ff ff ff ff ff ff ff
[ 13.676788] usb 2-2: 108: ff ff ff ff ff ff ff ff
[ 13.676790] usb 2-2: 110: ff ff ff ff ff ff ff 0d
[ 13.676792] usb 2-2: 118: 03 00 05 00 30 00 00 00
[ 13.676794] usb 2-2: 120: 00 93 ff ff ff ff ff ff
[ 13.676795] usb 2-2: 128: ff ff ff ff ff ff ff ff
[ 13.676797] usb 2-2: 130: f6 a8 98 2d 03 92 98 00
[ 13.676799] usb 2-2: 138: fc 8c 00 11 9b 44 02 0a
[ 13.676801] usb 2-2: 140: ff ff ff ff ff ff ff ff
[ 13.676803] usb 2-2: 148: ff ff ff ff ff ff ff ff
[ 13.676804] usb 2-2: 150: ff ff ff ff ff ff ff ff
[ 13.676806] usb 2-2: 158: ff ff ff ff ff ff ff ff
[ 13.676808] usb 2-2: 160: ff ff ff ff ff ff ff ff
[ 13.676810] usb 2-2: 168: ff ff ff ff ff ff ff ff
[ 13.676812] usb 2-2: 170: ff ff ff ff ff ff ff ff
[ 13.676813] usb 2-2: 178: ff ff ff ff ff ff ff ff
[ 13.676815] usb 2-2: 180: ff ff ff ff ff ff ff ff
[ 13.676817] usb 2-2: 188: ff ff ff ff ff ff ff ff
[ 13.676819] usb 2-2: 190: ff ff ff ff ff ff ff ff
[ 13.676821] usb 2-2: 198: ff ff ff ff ff ff ff ff
[ 13.676822] usb 2-2: 1a0: ff ff ff ff ff ff ff ff
[ 13.676824] usb 2-2: 1a8: ff ff ff ff ff ff ff ff
[ 13.676826] usb 2-2: 1b0: ff ff ff ff ff ff ff ff
[ 13.676828] usb 2-2: 1b8: ff ff ff ff ff ff ff ff
[ 13.676830] usb 2-2: 1c0: ff ff ff ff ff ff ff ff
[ 13.676831] usb 2-2: 1c8: ff ff ff ff ff ff ff ff
[ 13.676833] usb 2-2: 1d0: ff ff ff ff ff ff ff ff
[ 13.676835] usb 2-2: 1d8: ff ff ff ff ff ff ff ff
[ 13.676837] usb 2-2: 1e0: ff ff ff ff ff ff ff ff
[ 13.676839] usb 2-2: 1e8: ff ff ff ff ff ff ff ff
[ 13.676840] usb 2-2: 1f0: ff ff ff ff ff ff ff ff
[ 13.676842] usb 2-2: 1f8: ff ff ff ff ff ff ff ff
[ 13.676846] usb 2-2: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 13.676849] usb 2-2: RTL8192EU MAC: 98:de:d0:08:b5:3f
[ 13.676851] usb 2-2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 13.715888] usb 2-2: Firmware revision 19.0 (signature 0x92e1)
[ 13.720579] do the RAM reset


and for the ath9k
      Code:
[   13.931397] usb 1-6: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[   14.183323] ath9k_htc 1-6:1.0: ath9k_htc: HTC initialized with 33 credits
[   14.418527] ath9k_htc 1-6:1.0: ath9k_htc: FW Version: 1.4
[   14.418530] ath9k_htc 1-6:1.0: FW RMW support: On
[   14.418532] ath: EEPROM regdomain: 0x809c
[   14.418533] ath: EEPROM indicates we should expect a country code
[   14.418534] ath: doing EEPROM country->regdmn map search
[   14.418535] ath: country maps to regdmn code: 0x52
[   14.418536] ath: Country alpha2 being used: CN
[   14.418537] ath: Regpair used: 0x52
[   14.429813] systemd-journald[210]: Successfully sent stream file descriptor to service manager.
[   14.585164] ieee80211 phy1: Atheros AR9271 Rev:1
[   14.638004] ath9k_htc 1-6:1.0 wlxc4e984db2696: renamed from wlan0


below
      Code:
[   14.810885] rtl8xxxu 2-2:1.0 wlx98ded008b53f: renamed from wlan0
...
[   36.142325] wlxc4e984db2696: authenticate with 30:46:9a:47:65:1c
[   36.328404] wlxc4e984db2696: send auth to 30:46:9a:47:65:1c (try 1/3)
[   36.330112] wlxc4e984db2696: authenticated
[   36.330891] wlxc4e984db2696: associate with 30:46:9a:47:65:1c (try 1/3)
[   36.334708] wlxc4e984db2696: RX AssocResp from 30:46:9a:47:65:1c (capab=0x411 status=0 aid=5)
[   36.342856] wlxc4e984db2696: associated
[   36.342906] IPv6: ADDRCONF(NETDEV_CHANGE): wlxc4e984db2696: link becomes ready



The whole dmesg output is in the file:

https://docs.google.com/document/d/11kq ... sp=sharing
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 09.12.2016, 14:12



Joined: 2010-09-13
Posts: 331

Status: Offline
With the following command

      Code:
dmesg | grep iwl; lsmod | grep iwl; lshw -c net


I get

      Quote:
*-network:0
description: Wireless interface
physical id: 1
bus info: usb@2:1
logical name: wlx98ded008b53f
serial: 98:de:d0:08:b5:3f
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8xxxu driverversion=4.8.0-12.slh.2.1-aptosid-amd64 firmware=N/A link=no multicast=yes wireless=IEEE 802.11
*-network:1
description: Wireless interface
physical id: 2
bus info: usb@1:6
logical name: wlxc4e984db2696
serial: c4:e9:84:db:26:96
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=ath9k_htc driverversion=4.8.0-12.slh.2.1-aptosid-amd64 firmware=1.4 ip=192.168.0.7 link=yes multicast=yes wireless


Therefore, i suppose I need the firmware.
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 11.12.2016, 23:41



Joined: 2010-08-25
Posts: 962

Status: Offline
I'm only concentrating on your rtl8192eu device here, as -to the best of my knowledge- your ath9k_htc based one is fine (at least mine is), please speak up if I missed anything.

Basically the inititalization messages, albeit a bit chatty (rtl8xxxu still has the verbosity levels cranked up for debugging), are looking quite normal. After "ip link set wlx98ded008b53f up", scanning (iw dev wlx98ded008b53f scan") should (famous last words) work and it should be able to associate. The required firmware is /lib/firmware/rtlwifi/rtl8192eu_nic.bin, provided by "firmware-realtek", but this also seems to have been loaded fine.

Meanwhile I've uploaded kernel 4.9, plus some further updates for rtl8xxxu, corresponding to the most current development state of this driver, as there have been quite some changes targetting the rtl8192eu chipset family in particular. Please give that a test, as I personally don't have any devices covered by the rtl8xxxu around.
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 12.12.2016, 02:19



Joined: 2010-09-13
Posts: 331

Status: Offline
Thank you slh
It is working ...!!!!
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 12.12.2016, 20:05



Joined: 2010-08-25
Posts: 962

Status: Offline
Great to hear, so your initial problems (before you edited your post) are resolved?

In general Ceni isn't a good tool for debugging, it still does the job for setting up a connection, but when it comes to problems, you want to orchestrate the lower level tools directly (ifup/ ifdown, wpa_cli, wpa_action, iw).
 
 View user's profile Send private message  
Reply with quote Back to top
snvvOffline
Post subject: RE: How to compile TL-WN822N Wireless USB Adapter?  PostPosted: 12.12.2016, 22:02



Joined: 2010-09-13
Posts: 331

Status: Offline
yes, I resolved the problems using lower level tools.
indeed, ceni was not very informative.

To be honest, I tried so many different things that I am not quite sure what is the right combination that actually solved the problem.

All's Well That Ends Well (William Shakespeare) Smile
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio