cacatoès

TP-Link WN821N

Il s’agit d’un adaptateur USB à bas prix acheté chez LDLC.

Difficile de distinguer la version 5 de la version 6.

A côté du S/N, il est indiqué V6.0.

Mais à côté du FCC-ID, il est indiqué V5.

lsusb pense qu’il s’agit de la v5.

$ lsusb -d 2357:0107 -v

Bus 002 Device 002: ID 2357:0107 TP-Link TL-WN821N Version 5 RTL8192EU
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x2357 TP-Link
  idProduct          0x0107 TL-WN821N Version 5 RTL8192EU
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0035
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           5
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x08  EP 8 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

Le noyau 4.19 ne semble pas préconiser de firmware, et ne charche pas de module.

[ven. août  2 15:24:31 2019] usb 2-2: new high-speed USB device number 2 using xhci_hcd
[ven. août  2 15:24:31 2019] usb 2-2: New USB device found, idVendor=2357, idProduct=0107, bcdDevice= 2.00
[ven. août  2 15:24:31 2019] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ven. août  2 15:24:31 2019] usb 2-2: Product: 802.11n NIC 
[ven. août  2 15:24:31 2019] usb 2-2: Manufacturer: Realtek 
[ven. août  2 15:24:31 2019] usb 2-2: SerialNumber: 00e04c000001

Wikidevi nous met sur la piste du pilote rtl8xxxu :

rtl8xxxu is a multi-driver for USB devices(RTL8723AU/RTL8723BU/RTL8191EU/RTL8192EU/RTL8188EU/RTL8188RU) (4.3+), for other chips WIP: git-tree

$ sudo modinfo rtl8xxxu
filename:       /lib/modules/4.19.0-5-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.Sorensen@gmail.com>
alias:          usb:v0BDApB720d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2357p0109d*dc*dsc*dp*icFFiscFFipFFin*
alias:          usb:v2001p3319d*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
retpoline:      Y
intree:         Y
name:           rtl8xxxu
vermagic:       4.19.0-5-amd64 SMP mod_unload modversions 
sig_id:         PKCS#7
signer:         Debian Secure Boot CA
sig_key:        A7:46:8D:EF
sig_hashalgo:   sha256
signature:      CF:65:41:F1:5F:78:C5:95:0D:E2:FB:9A:CA:26:30:C0:F4:09:1F:D3:
        1E:B1:F4:25:3D:F7:F0:18:E8:EE:9F:3F:30:68:81:8E:A3:E9:0A:D7:
        B1:65:25:2D:EC:06:E6:3D:82:56:E7:FD:1D:FA:46:17:C3:A1:30:ED:
        BA:AE:7D:04:1E:0C:06:8F:FE:B1:F8:44:57:D8:F2:92:2D:E7:4C:7B:
        6E:D3:F6:C6:1B:04:01:3A:FC:BA:C4:3A:73:A5:E5:06:B7:F3:4E:79:
        CF:13:6A:05:22:3D:46:96:AC:BF:5A:00:ED:1F:E3:43:CB:EB:95:9A:
        31:AC:B3:FE:A4:99:80:2D:48:D7:94:9B:8E:3B:79:E3:40:05:28:8B:
        90:2A:33:FE:12:60:4F:62:9A:EB:F2:D2:08:C9:43:7B:D7:76:C1:83:
        18:18:17:E4:92:EC:3D:13:79:48:64:35:88:CF:AE:AC:55:00:25:11:
        77:C7:70:2B:F1:CE:41:72:85:F1:15:61:27:C0:59:54:97:A8:88:BB:
        A3:D2:C9:D2:BC:A3:4F:43:C5:21:30:A0:3A:42:C2:E0:6F:E2:2A:DA:
        69:1E:74:42:22:66:45:BA:0F:1B:6C:F6:F1:92:72:0A:EE:A8:E9:12:
        63:DE:80:67:3E:63:6B:58:40:15:E7:E7:2D:92:4C:D3
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)

Par contre, on ne retrouve pas son identifiant USB parmi les lignes “alias”.

Le fichier de firmware rtlwifi/rtl8192eu_nic.bin est fourni par firmware-realtek:

Après installation du firmware, un modprobe rtl8xxxu ne semble pas le chatouiller, et l’interface réseau n’apparaît pas. Il y a du zobi dans l’air.