NetBSD Problem Report #52841
From dieter.r@pandora.be Mon Dec 18 18:52:54 2017
Return-Path: <dieter.r@pandora.be>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AA3DE7A180
for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Dec 2017 18:52:54 +0000 (UTC)
Message-Id: <20171218185250.B28FC2A50BD@simult.auwegem.be>
Date: Mon, 18 Dec 2017 19:52:50 +0100 (CET)
From: dieter.NetBSD@pandora.be
Reply-To: dieter.NetBSD@pandora.be
To: gnats-bugs@NetBSD.org
Subject: detect/attach one more Realtek WLAN Adapter
X-Send-Pr-Version: 3.95
>Number: 52841
>Category: kern
>Synopsis: detect/attach one more Realtek WLAN Adapter
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Dec 18 18:55:00 +0000 2017
>Originator: dieter roelants
>Release: NetBSD 8.99.3
>Organization:
>Environment:
System: NetBSD simult.auwegem.be 8.99.3 NetBSD 8.99.3 (SIMULT) #150: Mon Dec 18 18:03:16 CET 2017 dieter@simult.auwegem.be:/build/obj.amd64.current/sys/arch/amd64/compile/SIMULT amd64
Architecture: x86_64
Machine: amd64
>Description:
The following device attaches as ugen in a vanilla kernel.
It could be so much more as a urtwn instance.
Realtek (0xdf6) 802.11n WLAN Adapter (0x77), rev 2.00/2.00
>How-To-Repeat:
Get your hands on this device and plug it in.
>Fix:
See patch below. Linux calls it a rtl8192cu, so I just
appended took the name of the R2 device that was already
there and appended a 'b'. No idea how this is usually
handled.
Index: if_urtwn.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.53
diff -p -u -r1.53 if_urtwn.c
--- if_urtwn.c 3 May 2017 15:34:05 -0000 1.53
+++ if_urtwn.c 18 Dec 2017 18:30:03 -0000
@@ -180,6 +180,7 @@ static const struct urtwn_dev {
URTWN_DEV(SITECOMEU, RTL8188CU_2),
URTWN_DEV(SITECOMEU, RTL8192CU),
URTWN_DEV(SITECOMEU, RTL8192CUR2),
+ URTWN_DEV(SITECOMEU, RTL8192CUR2b),
URTWN_DEV(TPLINK, RTL8192CU),
URTWN_DEV(TRENDNET, RTL8188CU),
URTWN_DEV(TRENDNET, RTL8192CU),
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.739
diff -p -u -r1.739 usbdevs
--- usbdevs 29 Aug 2017 18:31:19 -0000 1.739
+++ usbdevs 18 Dec 2017 18:30:15 -0000
@@ -3057,6 +3058,7 @@ product SITECOMEU WLA5000 0x0062 WLA-500
product SITECOMEU AX88179 0x0072 AX88179 USB 3.0 gigabit ethernet controller
product SITECOMEU LN028 0x061c LN-028
product SITECOMEU RTL8192CUR2 0x0070 RTL8192CU rev 2/2
+product SITECOMEU RTL8192CUR2b 0x0077 RTL8192CU rev 2/2
product SITECOMEU WL113 0x9071 WL-113
product SITECOMEU ZD1211B 0x9075 ZD1211B
product SITECOMEU WL172 0x90ac WL-172
(Contact us)
$NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.