NetBSD-Bugs archive

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

kern/58250: Add TP-Link UE300 USB LAN adapter



>Number:         58250
>Category:       kern
>Synopsis:       Add TP-Link UE300 USB LAN adapter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun May 12 10:30:00 +0000 2024
>Originator:     RVP
>Release:        NetBSD-10.99.10/amd64
>Organization:
>Environment:
NetBSD-10.99.10/amd64
>Description:
Add USB ID for TP-Link UE300 USB Lan adapter. Without this, the generic
cdce(4) driver attaches--which is _very_ flaky.

The description is from the Linux USB ID Repository:

http://www.linux-usb.org/usb-ids.html
>How-To-Repeat:
Attach a TP-Link UE300 device. Watch cdce(4) struggle with it.
>Fix:
diff -urN a/src/sys/dev/usb/if_ure.c b/src/sys/dev/usb/if_ure.c
--- a/src/sys/dev/usb/if_ure.c	2023-10-09 11:28:05.000000000 +0000
+++ b/src/sys/dev/usb/if_ure.c	2024-05-09 09:18:36.269784151 +0000
@@ -72,7 +72,8 @@
 
 static const struct usb_devno ure_devs[] = {
 	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8152 },
-	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 }
+	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 },
+	{ USB_VENDOR_TPLINK,  USB_PRODUCT_TPLINK_UE300 }
 };
 
 #define URE_BUFSZ	(16 * 1024)
diff -urN a/src/sys/dev/usb/usbdevs b/src/sys/dev/usb/usbdevs
--- a/src/sys/dev/usb/usbdevs	2024-04-17 05:31:04.595580948 +0000
+++ b/src/sys/dev/usb/usbdevs	2024-05-09 09:15:54.572775627 +0000
@@ -3467,6 +3467,7 @@
 product	TPLINK T4UV2		0x010d  Archer T4U ver 2
 product	TPLINK T4UHV2		0x010e  Archer T4UH ver 2
 product	TPLINK T2UNANO		0x011e  Archer T2U Nano
+product	TPLINK UE300		0x0601  UE300 10/100/1000 LAN
 
 /* Trek Technology products */
 product TREK THUMBDRIVE		0x1111	ThumbDrive



Home | Main Index | Thread Index | Old Index