On Thu, Jan 16, 2014 at 08:09:00PM +0000, Bernte wrote:
> Hello,
>
> I was hoping that my TP-Link TL-WN8200ND works in 5.4, but it looks like
> it is only detected as an unsupported USB device.
>
> ugen0 at uhub0 port 2 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 2
>
> While the documentation from the provider is not verbose about the
> chipset used, the following page claims that it is a Realtek RTL8192CU,
> which seems to be supported by urtwn(4).
>
> http://wikidevi.com/wiki/TP-LINK_TL-WN8200ND
>
> Assuming that the firmware was missing, I tried fw_update, but that did
> not download any firmware files.
>
> I would be thankful for any kind of help to get this adapter running.
>
> Bernd
A device attaching as ugen means no driver has claimed it.
Support for your device and many other urtwn devices was added
after 5.4.
Here is an untested patch against 5.4 that should work:
to apply:
cd /usr/src/sys/dev/usb
patch -p0 < /tmp/path/to/patch
make
then build and install a kernel as normal
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.601
diff -u -p -r1.601 usbdevs
--- usbdevs 21 Jul 2013 15:19:41 -0000 1.601
+++ usbdevs 17 Jan 2014 06:25:21 -0000
@@ -600,6 +600,7 @@ vendor TRENDNET 0x20f4 TRENDnet
vendor RTSYSTEMS 0x2100 RT Systems
vendor DLINK3 0x2101 D-Link
vendor MOTOROLA2 0x22b8 Motorola
+vendor TPLINK 0x2357 TP-Link
vendor TRIPPLITE 0x2478 Tripp-Lite
vendor NHJ 0x2770 NHJ
vendor ASUSTEK 0x2821 ASUSTeK Computer
@@ -3980,6 +3981,9 @@ product TORADEX ORIENT 0x0015 Toradex O
/* Toshiba Corp products */
product TOSHIBA RT3070 0x0a07 RT3070
product TOSHIBA HSDPA 0x1302 HSDPA
+
+/* TP-Link products */
+product TPLINK RTL8192CU 0x0100 RTL8192CU
/* Trek Technology products */
product TREK THUMBDRIVE 0x1111 ThumbDrive
Index: if_urtwn.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.27
diff -u -p -r1.27 if_urtwn.c
--- if_urtwn.c 21 Jul 2013 15:19:52 -0000 1.27
+++ if_urtwn.c 17 Jan 2014 06:24:35 -0000
@@ -130,6 +130,7 @@ static const struct usb_devno urtwn_devs
{ USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_RTL8188CU },
{ USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_RTL8188CU_2 },
{ USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_RTL8192CU },
+ { USB_VENDOR_TPLINK, USB_PRODUCT_TPLINK_RTL8192CU },
{ USB_VENDOR_TRENDNET, USB_PRODUCT_TRENDNET_RTL8188CU },
{ USB_VENDOR_TRENDNET, USB_PRODUCT_TRENDNET_RTL8192CU },
{ USB_VENDOR_ZYXEL, USB_PRODUCT_ZYXEL_RTL8192CU }