8192eu and TL-WN823N V2: A myriad of issues

I bought a TP-Link WN823N dongle weeks ago because my ath9k-based PCI is faulty and since the first day it showed all sorts of issues but with patience I fixed, worked around or ignored them until today. The problem is that now I can finally be free of tethering but the dongle simply refuses to work in infrastructure mode under Linux.

Here’s a list of issues I found so far:

  • rtl8xxxu scans but doesn’t connect
  • rtl8xxxu with three different firmware versions (extracted with github.com/diegoe/rtl8192eu-fw-extract) scans but doesn’t connect (auth timeout)
  • TP-Link drivers don’t even compile
  • All community drivers I tried make the system freeze when (dis)associating to an access point or (un)plugging from the USB port
  • github.com/clnhub/rtl8192eu-linux freezes the system for a few seconds and segfaults every single time you try to connect in infrastructure mode
  • github.com/Mange/rtl8192eu-linux-driver freezes the system for a few seconds and doesn’t segfault but doesn’t connect in infrastructure mode either
  • github.com/noud/rtl8192EU_WiFi_linux doesn’t compile
  • github.com/ZeeRooo/RTL8192EU doesn’t compile

Anybody ever got this thing to work under fedora?

lsusb:

Bus 001 Device 007: ID 2357:0109 TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU]

relevant modprobe.d file when using 8192eu drivers:

blacklist rtl8xxxu
options 8192eu rtw_power_mgnt=0 rtw_enusbss=0

dmesg when using 8192eu:

14411.637175] usb 1-3: new high-speed USB device number 8 using xhci_hcd
[14411.854519] usb 1-3: New USB device found, idVendor=2357, idProduct=0109, bcdDevice= 2.00
[14411.854521] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14411.854522] usb 1-3: Product: 802.11n NIC 
[14411.854523] usb 1-3: Manufacturer: Realtek 
[14411.854524] usb 1-3: SerialNumber: 00e04c000001
[14415.461873] usbcore: registered new interface driver rtl8xxxu
[14415.466957] rtl8192eu 1-3:1.0 wlp1s0f0u3: renamed from wlan0
[14461.795426] ------------[ cut here ]------------
[14461.795445] WARNING: CPU: 10 PID: 208873 at /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_mlme_ext.c:11863 rtw_mlmeext_disconnect+0xe3/0x133 [8192eu]
[14461.795445] Modules linked in: rtl8xxxu 8192eu(OE) wmi_bmof wmi uinput nf_conntrack_netlink xt_addrtype br_netfilter xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_nat_tftp nf_conntrack_tftp tun bridge stp llc ccm nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security ip_set overlay nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) nct6775 hwmon_vid sunrpc vfat fat squashfs loop ath9k ath9k_common ath9k_hw snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi mac80211 snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep ath snd_seq libarc4 snd_seq_device
[14461.795465]  snd_pcm snd_timer edac_mce_amd snd soundcore kvm_amd kvm cfg80211 irqbypass joydev rfkill sp5100_tco i2c_piix4 k10temp rapl pcspkr gpio_amdpt gpio_generic acpi_cpufreq zram ip_tables amdgpu iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper cec crct10dif_pclmul crc32_pclmul drm crc32c_intel ghash_clmulni_intel ccp r8169 pinctrl_amd fuse videodev mc [last unloaded: rtl8xxxu]
[14461.795477] CPU: 10 PID: 208873 Comm: ifconfig Tainted: P        W  OE     5.9.12-200.fc33.x86_64 #1
[14461.795477] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Steel Legend, BIOS P2.90 11/27/2019
[14461.795490] RIP: 0010:rtw_mlmeext_disconnect+0xe3/0x133 [8192eu]
[14461.795491] Code: df e8 22 09 01 00 48 8d bb a8 0f 00 00 e8 80 73 a5 c1 c6 83 22 06 00 00 00 c7 83 24 06 00 00 00 00 00 00 48 83 c4 08 5b 5d c3 <0f> 0b e9 49 ff ff ff c6 44 24 04 00 48 8d 54 24 04 be 59 00 00 00
[14461.795491] RSP: 0018:ffffa97488983bf0 EFLAGS: 00010206
[14461.795492] RAX: 0000000000000800 RBX: ffffa97480437000 RCX: 0000000000000000
[14461.795492] RDX: 0000000000000004 RSI: ffff8a4179bc8590 RDI: ffffa97480437000
[14461.795493] RBP: ffffa97480437bf2 R08: ffffa97488983bc8 R09: ffff8a4179bc8590
[14461.795493] R10: 00000000000002ac R11: 0000000000000000 R12: ffffa97480437000
[14461.795493] R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000001
[14461.795494] FS:  00007f6dda3575c0(0000) GS:ffff8a418ea80000(0000) knlGS:0000000000000000
[14461.795495] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[14461.795495] CR2: 00005624d7d645e6 CR3: 0000000103384000 CR4: 0000000000350ee0
[14461.795496] Call Trace:
[14461.795512]  disconnect_hdl+0x2b/0x8a [8192eu]
[14461.795530]  ? _rtw_zmalloc+0x25/0x2b [8192eu]
[14461.795540]  rtw_disassoc_cmd+0x42/0x141 [8192eu]
[14461.795542]  ? dev_reset_queue+0x30/0x80
[14461.795543]  ? dev_deactivate_many+0x293/0x2c0
[14461.795560]  netdev_close+0x63/0xee [8192eu]
[14461.795561]  __dev_close_many+0x8e/0xf0
[14461.795563]  __dev_change_flags+0xfd/0x220
[14461.795564]  dev_change_flags+0x21/0x60
[14461.795566]  devinet_ioctl+0x641/0x810
[14461.795567]  inet_ioctl+0x18c/0x1d0
[14461.795568]  ? netdev_name_node_lookup_rcu+0x68/0x80
[14461.795569]  ? netdev_name_node_lookup_rcu+0x68/0x80
[14461.795569]  ? dev_get_by_name_rcu+0xa/0x20
[14461.795570]  ? dev_ioctl+0x4ac/0x560
[14461.795572]  sock_do_ioctl+0x3c/0x130
[14461.795574]  ? selinux_file_ioctl+0x122/0x1c0
[14461.795575]  sock_ioctl+0x240/0x3b0
[14461.795577]  __x64_sys_ioctl+0x83/0xb0
[14461.795579]  do_syscall_64+0x33/0x40
[14461.795581]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[14461.795582] RIP: 0033:0x7f6dda28338b
[14461.795583] Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d bd ba 0c 00 f7 d8 64 89 01 48
[14461.795583] RSP: 002b:00007fff02c2ec68 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
[14461.795584] RAX: ffffffffffffffda RBX: 00000000fffffffe RCX: 00007f6dda28338b
[14461.795584] RDX: 00007fff02c2ec70 RSI: 0000000000008914 RDI: 0000000000000004
[14461.795585] RBP: 00007fff02c2ed30 R08: 0000000000000004 R09: 0033753066307331
[14461.795585] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fff02c2ec70
[14461.795585] R13: 0000000000000004 R14: 00007fff02c2ed30 R15: 0000000000000000
[14461.795587] ---[ end trace 904d0ce99569a9e5 ]---
[14473.618052] usb 1-3: USB disconnect, device number 8

iw phy info using 8192eu:

Wiphy phy3
	max # scan SSIDs: 9
	max scan IEs length: 2304 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 0 (up to 0m)
	Supported Ciphers:
		* WEP40 (00-0f-ac:1)
		* WEP104 (00-0f-ac:5)
		* TKIP (00-0f-ac:2)
		* CCMP-128 (00-0f-ac:4)
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
	Band 1:
		Capabilities: 0x1962
			HT20/HT40
			Static SM Power Save
			RX HT20 SGI
			RX HT40 SGI
			RX STBC 1-stream
			Max AMSDU length: 7935 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT Max RX data rate: 952 Mbps
		HT TX/RX MCS rate indexes supported: 0-15
		Bitrates (non-HT):
			* 1.0 Mbps
			* 2.0 Mbps
			* 5.5 Mbps
			* 11.0 Mbps
			* 6.0 Mbps
			* 9.0 Mbps
			* 12.0 Mbps
			* 18.0 Mbps
			* 24.0 Mbps
			* 36.0 Mbps
			* 48.0 Mbps
			* 54.0 Mbps
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (20.0 dBm)
			* 2484 MHz [14] (disabled)
	Supported commands:
		 * new_interface
		 * set_interface
		 * new_key
		 * start_ap
		 * new_station
		 * set_bss
		 * join_ibss
		 * set_pmksa
		 * del_pmksa
		 * flush_pmksa
		 * remain_on_channel
		 * frame
		 * set_channel
		 * connect
		 * disconnect
	Supported TX frame types:
		 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
	Supported RX frame types:
		 * IBSS: 0xd0
		 * managed: 0x40 0xd0
		 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * P2P-client: 0x40 0xd0
		 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
	WoWLAN support:
		 * wake up on anything (device continues operating normally)
	software interface modes (can always be added):
	interface combinations are not supported
	Device supports scan flush.
	Supported extended features:

lshw when using 8192eu:

  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:3
       logical name: wlp1s0f0u3
       serial: 02:d2:9e:48:a0:a4
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192eu driverversion=5.9.12-200.fc33.x86_64 multicast=yes wireless=unassociated

dmesg when using rtl8xxxu

[14646.673148] usb 1-3: new high-speed USB device number 10 using xhci_hcd
[14646.889748] usb 1-3: New USB device found, idVendor=2357, idProduct=0109, bcdDevice= 2.00
[14646.889749] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14646.889750] usb 1-3: Product: 802.11n NIC 
[14646.889751] usb 1-3: Manufacturer: Realtek 
[14646.889752] usb 1-3: SerialNumber: 00e04c000001
[14650.929103] usb 1-3: Vendor: Realtek
[14650.929105] usb 1-3: Product: \x03802.11n NI
[14650.929106] usb 1-3: Serial: 
[14650.929106] usb 1-3: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[14650.929107] usb 1-3: 00: 29 81 00 7c 01 40 03 00
[14650.929108] usb 1-3: 08: 40 74 04 50 14 00 00 00
[14650.929109] usb 1-3: 10: 29 29 2b 2c 2c 2c 2c 2c
[14650.929109] usb 1-3: 18: 2d 2e 2e f2 ef ef ff ff
[14650.929110] usb 1-3: 20: ff ff ff ff ff ff ff ff
[14650.929110] usb 1-3: 28: ff ff ff ff ff ff ff ff
[14650.929111] usb 1-3: 30: ff ff ff ff ff ff ff ff
[14650.929111] usb 1-3: 38: ff ff 2a 2a 2a 2b 2b 2b
[14650.929112] usb 1-3: 40: 2c 2c 2c 2c 2c f2 ef ef
[14650.929112] usb 1-3: 48: ff ff ff ff ff ff ff ff
[14650.929113] usb 1-3: 50: ff ff ff ff ff ff ff ff
[14650.929113] usb 1-3: 58: ff ff ff ff ff ff ff ff
[14650.929114] usb 1-3: 60: ff ff ff ff ff ff ff ff
[14650.929114] usb 1-3: 68: ff ff ff ff ff ff ff ff
[14650.929115] usb 1-3: 70: ff ff ff ff ff ff ff ff
[14650.929115] usb 1-3: 78: ff ff ff ff ff ff ff ff
[14650.929115] usb 1-3: 80: ff ff ff ff ff ff ff ff
[14650.929116] usb 1-3: 88: ff ff ff ff ff ff ff ff
[14650.929116] usb 1-3: 90: ff ff ff ff ff ff ff ff
[14650.929117] usb 1-3: 98: ff ff ff ff ff ff ff ff
[14650.929117] usb 1-3: a0: ff ff ff ff ff ff ff ff
[14650.929118] usb 1-3: a8: ff ff ff ff ff ff ff ff
[14650.929118] usb 1-3: b0: ff ff ff ff ff ff ff ff
[14650.929119] usb 1-3: b8: a1 1f 1f 00 00 00 ff ff
[14650.929119] usb 1-3: c0: ff 01 00 10 00 00 00 ff
[14650.929120] usb 1-3: c8: 00 00 ff ff ff ff ff ff
[14650.929120] usb 1-3: d0: 57 23 09 01 e7 47 02 d0
[14650.929121] usb 1-3: d8: 37 45 b5 49 c6 0a 03 52
[14650.929121] usb 1-3: e0: 65 61 6c 74 65 6b 20 0e
[14650.929122] usb 1-3: e8: 03 38 30 32 2e 31 31 6e
[14650.929122] usb 1-3: f0: 20 4e 49 43 20 00 00 ff
[14650.929123] usb 1-3: f8: ff ff ff ff ff ff ff ff
[14650.929123] usb 1-3: 100: ff ff ff ff ff ff ff ff
[14650.929124] usb 1-3: 108: ff ff ff ff ff ff ff ff
[14650.929124] usb 1-3: 110: ff ff ff ff ff ff ff 0d
[14650.929125] usb 1-3: 118: 03 00 05 00 30 00 00 00
[14650.929125] usb 1-3: 120: 00 93 ff ff ff ff ff ff
[14650.929126] usb 1-3: 128: ff ff ff ff ff ff ff ff
[14650.929126] usb 1-3: 130: f6 a8 98 2d 03 92 98 00
[14650.929127] usb 1-3: 138: fc 8c 00 11 9b 44 02 0a
[14650.929127] usb 1-3: 140: ff ff ff ff ff ff ff ff
[14650.929128] usb 1-3: 148: ff ff ff ff ff ff ff ff
[14650.929128] usb 1-3: 150: ff ff ff ff ff ff ff ff
[14650.929129] usb 1-3: 158: ff ff ff ff ff ff ff ff
[14650.929129] usb 1-3: 160: ff ff ff ff ff ff ff ff
[14650.929130] usb 1-3: 168: ff ff ff ff ff ff ff ff
[14650.929130] usb 1-3: 170: ff ff ff ff ff ff ff ff
[14650.929131] usb 1-3: 178: ff ff ff ff ff ff ff ff
[14650.929131] usb 1-3: 180: ff ff ff ff ff ff ff ff
[14650.929132] usb 1-3: 188: ff ff ff ff ff ff ff ff
[14650.929132] usb 1-3: 190: ff ff ff ff ff ff ff ff
[14650.929133] usb 1-3: 198: ff ff ff ff ff ff ff ff
[14650.929133] usb 1-3: 1a0: ff ff ff ff ff ff ff ff
[14650.929134] usb 1-3: 1a8: ff ff ff ff ff ff ff ff
[14650.929134] usb 1-3: 1b0: ff ff ff ff ff ff ff ff
[14650.929135] usb 1-3: 1b8: ff ff ff ff ff ff ff ff
[14650.929135] usb 1-3: 1c0: ff ff ff ff ff ff ff ff
[14650.929136] usb 1-3: 1c8: ff ff ff ff ff ff ff ff
[14650.929136] usb 1-3: 1d0: ff ff ff ff ff ff ff ff
[14650.929136] usb 1-3: 1d8: ff ff ff ff ff ff ff ff
[14650.929137] usb 1-3: 1e0: ff ff ff ff ff ff ff ff
[14650.929137] usb 1-3: 1e8: ff ff ff ff ff ff ff ff
[14650.929138] usb 1-3: 1f0: ff ff ff ff ff ff ff ff
[14650.929138] usb 1-3: 1f8: ff ff ff ff ff ff ff ff
[14650.929140] usb 1-3: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[14650.929141] usb 1-3: RTL8192EU MAC: d0:37:45:b5:49:c6
[14650.929142] usb 1-3: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[14650.929333] usb 1-3: Firmware revision 35.7 (signature 0x92e1)

iw phy info with rtl8xxx0

Wiphy phy2
	max # scan SSIDs: 4
	max scan IEs length: 2257 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	RTS threshold: 2347
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 0 (up to 0m)
	Supported Ciphers:
		* WEP40 (00-0f-ac:1)
		* WEP104 (00-0f-ac:5)
		* TKIP (00-0f-ac:2)
		* CCMP-128 (00-0f-ac:4)
		* CCMP-256 (00-0f-ac:10)
		* GCMP-128 (00-0f-ac:8)
		* GCMP-256 (00-0f-ac:9)
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * managed
		 * monitor
	Band 1:
		Capabilities: 0x6c
			HT20
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 16 usec (0x07)
		HT TX/RX MCS rate indexes supported: 0-15, 32
		Bitrates (non-HT):
			* 1.0 Mbps
			* 2.0 Mbps
			* 5.5 Mbps
			* 11.0 Mbps
			* 6.0 Mbps
			* 9.0 Mbps
			* 12.0 Mbps
			* 18.0 Mbps
			* 24.0 Mbps
			* 36.0 Mbps
			* 48.0 Mbps
			* 54.0 Mbps
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (20.0 dBm)
			* 2484 MHz [14] (disabled)
	Supported commands:
		 * new_interface
		 * set_interface
		 * new_key
		 * start_ap
		 * new_station
		 * new_mpath
		 * set_mesh_config
		 * set_bss
		 * authenticate
		 * associate
		 * deauthenticate
		 * disassociate
		 * join_ibss
		 * join_mesh
		 * remain_on_channel
		 * set_tx_bitrate_mask
		 * frame
		 * frame_wait_cancel
		 * set_wiphy_netns
		 * set_channel
		 * set_wds_peer
		 * probe_client
		 * set_noack_map
		 * register_beacons
		 * start_p2p_device
		 * set_mcast_rate
		 * connect
		 * disconnect
		 * set_qos_map
		 * set_multicast_to_unicast
	Supported TX frame types:
		 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
	Supported RX frame types:
		 * IBSS: 0x40 0xb0 0xc0 0xd0
		 * managed: 0x40 0xb0 0xd0
		 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * mesh point: 0xb0 0xc0 0xd0
		 * P2P-client: 0x40 0xd0
		 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * P2P-device: 0x40 0xd0
	software interface modes (can always be added):
		 * monitor
	interface combinations are not supported
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Device supports TX status socket option.
	Device supports HT-IBSS.
	Device supports SAE with AUTHENTICATE command
	Device supports low priority scan.
	Device supports scan flush.
	Device supports AP scan.
	Device supports per-vif TX power setting
	Driver supports full state transitions for AP/GO clients
	Driver supports a userspace MPM
	Device supports configuring vdev MAC-addr on create.
	Supported extended features:
		* [ RRM ]: RRM
		* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
		* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
		* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211

lshw with rtl8xxxu:

  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:3
       logical name: wlp1s0f0u3
       serial: 26:d5:3e:f8:b5:85
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8xxxu driverversion=5.9.12-200.fc33.x86_64 firmware=N/A link=no multicast=yes wireless=IEEE 802.11

This is the device I have:
2f7a4a2ceaf3a9e9dcae029fab944ea54d54a93d.png
Link for the support page: Download for TL-WN823N | TP-Link

1 Like

Have you tried this?: take your time to try…

https://discussion.fedoraproject.org/t/fedora-are-there-any-drivers-for-usb-dongle-tp-link-wn823n-rtl8192eu-v3/74168/29

Regards.,

1 Like

Yes, those drivers as well as others not listed (see the bullet list in my post).

I have just tried ndiswrapper with the driver I copied from my Windows 10 install (where the adapter works flawlessly.) but I get errors when loading the module.

ndiswrapper -l:

netrtwlanu : driver installed
	device (2357:0109) present (alternate driver: 8192eu)

dmesg:

[  738.579827] Disabling lock debugging due to kernel taint
[  738.579829] ndiswrapper: module license taints kernel.
[  738.582143] ndiswrapper version 1.63 loaded (smp=yes, preempt=no)
[  738.766438] usb 1-3: reset high-speed USB device number 2 using xhci_hcd
[  738.978841] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'PoUnregisterPowerSettingCallback'
[  738.978843] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'PoRegisterPowerSettingCallback'
[  738.978844] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'EtwWriteTransfer'
[  738.978846] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'EtwSetInformation'
[  738.978847] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'EtwUnregister'
[  738.978848] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'EtwRegister'
[  738.978852] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'ExAllocatePool'
[  738.978856] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'MmGetSystemRoutineAddress'
[  738.978860] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'__chkstk'
[  738.978870] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'IoCsqInitialize'
[  738.978872] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'IoCsqInsertIrp'
[  738.978873] ndiswrapper (import:232): unknown symbol: ntoskrnl.exe:'IoCsqRemoveNextIrp'
[  738.978878] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisOpenConfigurationEx'
[  738.978881] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMRegisterWdiMiniportDriver'
[  738.978883] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMDeregisterWdiMiniportDriver'
[  738.978885] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMIndicateReceiveNetBufferLists'
[  738.978887] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateMdl'
[  738.978888] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateNetBufferAndNetBufferList'
[  738.978890] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMIdleNotificationComplete'
[  738.978891] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMIdleNotificationConfirm'
[  738.978893] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMDeregisterMiniportDriver'
[  738.978896] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisFreeMdl'
[  738.978897] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisFreeNetBufferList'
[  738.978899] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMIndicateStatusEx'
[  738.978901] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateNetBufferListPool'
[  738.978902] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisSetOptionalHandlers'
[  738.978904] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMFreePort'
[  738.978906] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMAllocatePort'
[  738.978907] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMNetPnPEvent'
[  738.978909] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisFreeIoWorkItem'
[  738.978911] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisQueueIoWorkItem'
[  738.978912] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateIoWorkItem'
[  738.978915] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisFreeTimerObject'
[  738.978916] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisCancelTimerObject'
[  738.978918] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisSetTimerObject'
[  738.978920] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateTimerObject'
[  738.978921] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisAllocateMemoryWithTagPriority'
[  738.978924] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMOidRequestComplete'
[  738.978926] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisFreeNetBufferListPool'
[  738.978936] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisRegisterDeviceEx'
[  738.978937] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisDeregisterDeviceEx'
[  738.978940] ndiswrapper (import:232): unknown symbol: NDIS.SYS:'NdisMSendNetBufferListsComplete'
[  738.978943] ndiswrapper (import:232): unknown symbol: WDFLDR.SYS:'WdfVersionUnbind'
[  738.978945] ndiswrapper (import:232): unknown symbol: WDFLDR.SYS:'WdfVersionBindClass'
[  738.978946] ndiswrapper (import:232): unknown symbol: WDFLDR.SYS:'WdfVersionUnbindClass'
[  738.978947] ndiswrapper (import:232): unknown symbol: WDFLDR.SYS:'WdfVersionBind'
[  738.978948] ndiswrapper (load_sys_files:204): couldn't prepare driver 'netrtwlanu'
[  738.979183] ndiswrapper (load_wrap_driver:101): couldn't load driver netrtwlanu; check system log for messages from 'loadndisdriver'
[  738.979201] usbcore: registered new interface driver ndiswrapper

I have this (V3) on Fedora 33:
Bus 001 Device 003: ID 2357:0109 TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU]
Compile from github.com/clnhub/rtl8192eu-linux

1 Like