Wireless USB stick TP-Link TL WN823N RTL8192EU can't authenticate ESSID

Hi folks!
I’ve just bought a wireless USB wireless adapter " TL-WN823N(EU) Ver: 3.0" (as box label ID). It was almost plug n play because I can successfully scan the ESSIDs over the air, but I can’t join any of them. I’ve tried to share my iPhone Hot Spot to test too, successfully view the ESSID over the scanning process but it still failing to join. I’ve tried manual wpa_supplicant changing the default driver to wext and to **nl80211 **without different responses.

hwinfo --wlan


15: USB 00.0: 0282 WLAN controller                              
  [Created at usb.122]
  Unique ID: 4QxB.3tSB9EujntA
  Parent ID: k4bc.2DFUsyrieMD
  SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11:1.0
  SysFS BusID: 1-11:1.0
  Hardware Class: network
  Model: "TP-Link TL WN823N RTL8192EU"
  Hotplug: USB
  Vendor: usb 0x2357 "TP-Link"
  Device: usb 0x0109 "TL WN823N RTL8192EU"
  Revision: "2.00"
  Serial ID: "00e04c000001"
  Driver: "rtl8xxxu"
  Driver Modules: "rtl8xxxu"
  Device File: wlp0s20f0u11
  Features: WLAN
  Speed: 480 Mbps
  HW Address: 06:12:21:bb:c8:7c
  Permanent HW Address: d0:37:45:4e:cf:1c
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 2.484
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "usb:v2357p0109d0200dc00dsc00dp00icFFiscFFipFFin00"
  Driver Info #0:
    Driver Status: rtl8xxxu is active
    Driver Activation Cmd: "modprobe rtl8xxxu"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #17 (Hub)

inxi -Fxzc0 (resumed)


System:    Kernel: 5.6.2-1-default x86_64 bits: 64 compiler: gcc v: 9.2.1 Console: tty 2 
           Distro: openSUSE Tumbleweed 20200409 
Machine:   Type: Mini-pc System: Daten Tecnologia Ltda product: DC2B-U v: daten - 1072009 serial: <filter> 
           Mobo: Daten Tecnologia Ltda model: DQ170UP v: DC serial: <filter> UEFI: Daten Tecnologia Ltda 
           v: daten - 1072009 date: 09/21/2015 
CPU:       Topology: Quad Core model: Intel Core i5-7600T bits: 64 type: MCP arch: Kaby Lake rev: 9 
           L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 22399 
           Speed: 1242 MHz min/max: 800/3700 MHz Core speeds (MHz): 1: 1400 2: 1400 3: 1400 4: 1400 

Network:   Device-1: Intel Ethernet I219-LM vendor: Elite Systems driver: e1000e v: 3.2.6-k port: f040 
           bus ID: 00:1f.6 
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: TP-Link TL WN823N RTL8192EU type: USB driver: rtl8xxxu bus ID: 1-11:4 
           IF: wlp0s20f0u11 state: down mac: <filter> 

Info:      Processes: 213 Uptime: 2h 05m Memory: 15.37 GiB used: 4.10 GiB (26.7%) Init: systemd runlevel: 5 
           Compilers: gcc: 9.2.1 Shell: bash v: 5.0.16 inxi: 3.0.38 

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 004: ID 2357:0109 TP-Link TL WN823N RTL8192EU
Bus 001 Device 003: ID 045e:009d Microsoft Corp. Wireless Optical Desktop 3.0
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg | egrep ‘rtl8xxxu|[R]ealtek|[F]irm’

    0.194227] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
    3.904610] usb 1-11: Manufacturer: Realtek 
    7.848450] usb 1-11: Vendor: Realtek
    7.848518] usb 1-11: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
    7.852263] usb 1-11: Firmware revision 19.0 (signature 0x92e1)
    8.952693] usbcore: registered new interface driver rtl8xxxu
    8.956169] rtl8xxxu 1-11:1.0 wlp0s20f0u11: renamed from wlan0
 5504.237397] usbcore: deregistering interface driver rtl8xxxu
 5511.379326] usb 1-11: Vendor: Realtek
 5511.379366] usb 1-11: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
 5511.380758] usb 1-11: Firmware revision 19.0 (signature 0x92e1)
 5512.257512] usbcore: registered new interface driver rtl8xxxu
 5512.260515] rtl8xxxu 1-11:1.0 wlp0s20f0u11: renamed from wlan0

journalctl:

 supplicant interface state: disabled -> inactive
Apr 11 21:38:42 pc-035185.trt20.intra NetworkManager[12909]: <info>  [1586651922.3615] device (wlp0s20f0u11): supplicant interface state: inactive -> scanning
Apr 11 21:38:44 pc-035185.trt20.intra NetworkManager[12909]: <info>  [1586651924.6109] audit: op="statistics" arg="refresh-rate-ms" pid=1678 uid=1000 result="success"
Apr 11 21:38:49 pc-035185.trt20.intra kernel: wlp0s20f0u11: authenticate with d8:fb:5e:38:b7:51
Apr 11 21:38:49 pc-035185.trt20.intra NetworkManager[12909]: <info>  [1586651929.5203] device (wlp0s20f0u11): supplicant interface state: scanning -> authenticating
Apr 11 21:38:49 pc-035185.trt20.intra kernel: wlp0s20f0u11: send auth to d8:fb:5e:38:b7:51 (try 1/3)
Apr 11 21:38:49 pc-035185.trt20.intra kernel: wlp0s20f0u11: send auth to d8:fb:5e:38:b7:51 (try 2/3)
Apr 11 21:38:49 pc-035185.trt20.intra kernel: wlp0s20f0u11: send auth to d8:fb:5e:38:b7:51 (try 3/3)
Apr 11 21:38:50 pc-035185.trt20.intra kernel: wlp0s20f0u11: authentication with d8:fb:5e:38:b7:51 timed out
Apr 11 21:38:50 pc-035185.trt20.intra NetworkManager[12909]: <info>  [1586651930.1646] device (wlp0s20f0u11): supplicant interface state: authenticating -> disconnected

wpa_supplicant log:

1586648563.948657: wpa_supplicant v2.9
1586648563.948681: Successfully initialized wpa_supplicant
1586648563.948692: Initializing interface 'wlp0s20f0u11' conf 'wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
1586648563.948701: Configuration file 'wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
1586648563.948704: Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
1586648563.948719: ctrl_interface='/var/run/wpa_supplicant'
1586648563.948722: ctrl_interface_group='0'
1586648563.948726: update_config=1
1586648563.948729: Line: 5 - start of a new network block
1586648563.948733: ssid - hexdump_ascii(len=11):
     73 6f 75 6e 64 67 61 72 64 65 6e                  soundgarden
1586648563.948740: PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
1586648563.948746: proto: 0x2
1586648563.948749: key_mgmt: 0x2
1586648563.948751: pairwise: 0x10
1586648563.948754: auth_alg: 0x1
1586648563.951335: PSK (from passphrase) - hexdump(len=32): [REMOVED]
1586648563.951342: Priority group 0
1586648563.951345:    id=0 ssid='soundgarden'
1586648563.951687: nl80211: Supported cipher 00-0f-ac:1
1586648563.951693: nl80211: Supported cipher 00-0f-ac:5
1586648563.951696: nl80211: Supported cipher 00-0f-ac:2
1586648563.951698: nl80211: Supported cipher 00-0f-ac:4
1586648563.951700: nl80211: Supported cipher 00-0f-ac:10
1586648563.951702: nl80211: Supported cipher 00-0f-ac:8
1586648563.951704: nl80211: Supported cipher 00-0f-ac:9
1586648563.951714: nl80211: Using driver-based off-channel TX
1586648563.951718: nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
1586648563.951721: nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
1586648563.951728: nl80211: interface wlp0s20f0u11 in phy phy0
1586648563.951746: nl80211: Set mode ifindex 3 iftype 2 (STATION)
1586648563.951760: nl80211: Subscribe to mgmt frames with non-AP handle 0x5579b98c0920
1586648563.951764: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5579b98c0920 match=040a
...
...
1586648563.951974: rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
1586648563.951996: netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
1586648563.952172: Add interface wlp0s20f0u11 to a new radio phy0
1586648563.952238: nl80211: Regulatory information - country=00
1586648563.952242: nl80211: 2402-2472 @ 40 MHz 20 mBm
1586648563.952246: nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
1586648563.952248: nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
1586648563.952251: nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
1586648563.952253: nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
1586648563.952256: nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
1586648563.952258: nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
1586648563.952261: nl80211: 57240-63720 @ 2160 MHz 0 mBm
1586648563.952269: nl80211: Added 802.11b mode based on 802.11g information
1586648563.952273: nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
1586648563.952277: nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
1586648563.967034: wlp0s20f0u11: Own MAC address: 2a:84:b5:68:ce:aa
1586648563.967071: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
1586648563.967110: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
1586648563.967128: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
1586648563.967144: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
1586648563.967160: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
1586648563.967175: wpa_driver_nl80211_set_key: ifindex=3 (wlp0s20f0u11) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0
1586648563.967187: wlp0s20f0u11: RSN: flushing PMKID list in the driver
1586648563.967191: nl80211: Flush PMKIDs
1586648563.967203: wlp0s20f0u11: Setting scan request: 0.100000 sec
1586648563.982858: TDLS: TDLS operation not supported by driver
1586648563.982886: TDLS: Driver uses internal link setup
1586648563.982891: TDLS: Driver does not support TDLS channel switching
1586648563.982938: wlp0s20f0u11: WPS: UUID based on MAC address: 0454fe16-2363-508a-b422-c05c40a51617
1586648563.983812: ENGINE: Loading builtin engines
1586648563.983993: ENGINE: Loading builtin engines
1586648563.984068: EAPOL: SUPP_PAE entering state DISCONNECTED
1586648563.984073: EAPOL: Supplicant port status: Unauthorized
1586648563.984078: nl80211: Skip set_supp_port(unauthorized) while not associated
1586648563.984082: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
1586648563.984086: EAPOL: SUPP_BE entering state INITIALIZE
1586648563.984091: EAP: EAP entering state DISABLED
1586648563.984548: ctrl_interface_group=0
1586648563.984606: wlp0s20f0u11: Added interface wlp0s20f0u11
1586648563.984621: wlp0s20f0u11: State: DISCONNECTED -> DISCONNECTED
1586648563.984628: nl80211: Set wlp0s20f0u11 operstate 0->0 (DORMANT)
1586648563.984633: netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
1586648563.984670: RTM_NEWLINK: ifi_index=3 ifname=wlp0s20f0u11 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
1586648564.067395: wlp0s20f0u11: State: DISCONNECTED -> SCANNING
...
...
1586648565.141133: RSN: Search for BSSID d8:fb:5e:38:b7:51
1586648565.141140: RSN: No PMKSA cache entry found
1586648565.141147: wlp0s20f0u11: RSN: using IEEE 802.11i/D9.0
1586648565.141158: wlp0s20f0u11: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
1586648565.141167: wlp0s20f0u11: WPA: Selected mgmt group cipher 32
1586648565.141176: wlp0s20f0u11: WPA: clearing AP WPA IE
1586648565.141195: WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00
1586648565.141209: wlp0s20f0u11: WPA: AP group 0x10 network profile group 0x18; available group 0x10
1586648565.141219: wlp0s20f0u11: WPA: using GTK CCMP
1586648565.141229: wlp0s20f0u11: WPA: AP pairwise 0x10 network profile pairwise 0x10; available pairwise 0x10
1586648565.141239: wlp0s20f0u11: WPA: using PTK CCMP
1586648565.141249: wlp0s20f0u11: WPA: AP key_mgmt 0x2 network profile key_mgmt 0x2; available key_mgmt 0x2
1586648565.141258: wlp0s20f0u11: WPA: using KEY_MGMT WPA-PSK
1586648565.141269: wlp0s20f0u11: WPA: AP mgmt_group_cipher 0x20 network profile mgmt_group_cipher 0x0; available mgmt_group_cipher 0x0
1586648565.141278: wlp0s20f0u11: WPA: not using MGMT group cipher
1586648565.141287: WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
1586648565.141298: PSK (set in config) - hexdump(len=32): [REMOVED]
1586648565.141304: WPA: Set PMK based on external data - hexdump(len=32): [REMOVED]
1586648565.141310: RRM: Determining whether RRM can be used - device support: 0x10
1586648565.141317: RRM: Adding RRM IE to Association Request
1586648565.141326: Added supported operating classes IE - hexdump(len=5): 3b 03 51 51 52
1586648565.141336: EAPOL: External notification - EAP success=0
1586648565.141344: EAPOL: External notification - EAP fail=0
1586648565.141351: EAPOL: External notification - portControl=Auto
1586648565.141358: wlp0s20f0u11: Cancelling scan request
1586648565.141371: wlp0s20f0u11: SME: Trying to authenticate with d8:fb:5e:38:b7:51 (SSID='soundgarden' freq=2422 MHz)
1586648565.141379: EAPOL: External notification - portValid=0
1586648565.141387: wlp0s20f0u11: State: SCANNING -> AUTHENTICATING
1586648565.141399: wlp0s20f0u11: Determining shared radio frequencies (max len 1)
1586648565.141409: wlp0s20f0u11: Shared frequencies (len=0): completed iteration
1586648565.141418: nl80211: Authenticate (ifindex=3)
1586648565.141433:   * bssid=d8:fb:5e:38:b7:51
1586648565.141440:   * freq=2422
1586648565.141446:   * SSID=soundgarden
1586648565.141452:   * IEs - hexdump(len=0): [NULL]
1586648565.141459:   * Auth Type 0
1586648565.146883: nl80211: Authentication request send successfully
1586648565.146917: nl80211: Event message available
1586648565.146935: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlp0s20f0u11
1586648565.146943: nl80211: New station d8:fb:5e:38:b7:51
1586648565.774929: nl80211: Event message available
1586648565.774988: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlp0s20f0u11
1586648565.774999: nl80211: Delete station d8:fb:5e:38:b7:51
1586648565.779090: nl80211: Event message available
1586648565.779104: nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlp0s20f0u11
1586648565.779108: nl80211: MLME event 37; timeout with d8:fb:5e:38:b7:51
1586648565.779113: wlp0s20f0u11: Event AUTH_TIMED_OUT (13) received
1586648565.779119: wlp0s20f0u11: SME: Authentication timed out
1586648565.779124: wlp0s20f0u11: Radio work 'sme-connect'@0x5579b98d3050 done in 0.638039 seconds

Thanx in advance
Heitor.

It was almost plug n play because I can successfully scan the ESSIDs over the air, but I can’t join any of them.

Just a thought -when you scan, what kind of received signal strength is being reported?

sudo iw dev wlan0 scan

FWIW, here is some accounts of users with the same 2357:0109 chipset found that they had to blacklist the kernel driver and install the 8192eu driver instead…
https://bbs.archlinux.org/viewtopic.php?id=244066

Driver package for openSUSE is here…
https://software.opensuse.org/search?utf8=✓&baseproject=ALL&q=8192eu

moved to the English subforum.

SOLVED

Thank you deano_ferrari! I simple changed rtl8xxxu driver for 8192eu and it works fine!

Thank you Sauerland too, for provide the driver at https://software.opensuse.org/download/package?package=rtl8192eu&project=home%3ASauerland%3Ahardware

Heitor.