NetBSD-Bugs archive

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

kern/52841: detect/attach one more Realtek WLAN Adapter



>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@localhost:/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



Home | Main Index | Thread Index | Old Index