tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

TPLINK TL-WN823NV2 (RTL8192EU) support



Hi There,

I have added TL-WN823NV2 (an USB WIFI adapter) to the current kernel with the patch below.
The system recognises successfully, and loads the relevant firmware.
Then wpa_supplicant can connect. Leds show that the device starts to scan.
This repeats every 5 secs. Nice.

The problem is that wpa_supplicant can't find any network. I've a couple of strong signals present, so it's not an issue.

The debug message from wpa_supplicant:
urtwn0: State: DISCONNECTED -> SCANNING
urtwn0: Strting AP scan for wildcard SSID
urtwn0: Add radio work 'scan'@0xbb1d3340
urtwn0: First radio work item in the queue - schedule start immediately
urtwn0: Starting radio work 'scan'@0xbb1d3340 after 0.000150 second wait
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
EAPOL: diable timer tick
urtwn0: Event SCAN_RESULTS (3) received
Received 0 bytes of scan results (0BSSes)
urtwn0: BSS: Start scan result update 1
BSS: last_scan_res_used=0/0
urtwn0: New scan results available (own=0 ext=0)
urtwn0: radio work 'scan'@0xbb1d3340 done in 5.353662 seconds
urtwn0: radio_work_free('scan'@0xbb1d3340: num_active_works -->0
urtwn0: No suitable nwtwork found

This repeats every 5 secs.

My question is how to solve the issue?

Thank you:
FeZ



Here is the change I've done in the usb driver:

Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.736
diff -u -r1.736 usbdevs
--- usbdevs	30 May 2017 20:13:35 -0000	1.736
+++ usbdevs	17 Apr 2018 06:11:40 -0000
@@ -3269,6 +3269,7 @@

 /* TP-Link products */
 product TPLINK RTL8192CU	0x0100	RTL8192CU
+product TPLINK RTL8192EU	0x0109	RTL8192EU
 product TPLINK RTL8188EU	0x010c	RTL8188EU

 /* Trek Technology products */
Index: if_urtwn.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.53.2.2
diff -u -r1.53.2.2 if_urtwn.c
--- if_urtwn.c	31 Jan 2018 18:01:54 -0000	1.53.2.2
+++ if_urtwn.c	17 Apr 2018 06:12:36 -0000
@@ -195,6 +199,7 @@

 	/* URTWN_RTL8192EU */
 	URTWN_RTL8192EU_DEV(REALTEK,	RTL8192EU),
+       URTWN_RTL8192EU_DEV(TPLINK ,	RTL8192EU)
 };
 #undef URTWN_DEV
 #undef URTWN_RTL8188E_DEV



Home | Main Index | Thread Index | Old Index