NetBSD Problem Report #57819
From www@netbsd.org Thu Jan 4 22:05:18 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_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 97FFB1A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 4 Jan 2024 22:05:18 +0000 (UTC)
Message-Id: <20240104220517.981961A9239@mollari.NetBSD.org>
Date: Thu, 4 Jan 2024 22:05:17 +0000 (UTC)
From: daleree@gmail.com
Reply-To: daleree@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Patch for Mercusys NW150US V2 USB wireless network device urtwn(4)
X-Send-Pr-Version: www-1.0
>Number: 57819
>Category: kern
>Synopsis: Patch for Mercusys NW150US V2 USB wireless network device urtwn(4)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 04 22:10:00 +0000 2024
>Closed-Date: Sat Jan 06 00:27:18 +0000 2024
>Last-Modified: Sat Jan 06 00:30:02 +0000 2024
>Originator: Daeil Lee
>Release: NetBSD 10.99.10
>Organization:
>Environment:
NetBSD 13netb 10.99.10 NetBSD 10.99.10 (GENERIC) #0: Fri Jan 5 02:41:50 KST 2024 pistis@DTOP:/home/pistis/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Mercusys MW150US V2 isn't recognized in NetBSD even though its chipset(RTL8188EU) is supported by urtwn(4).
>How-To-Repeat:
>Fix:
The diff below adds support to the device.
Here's the relevant dmesg after applying it (I deleted mac address):
[ 2.621437] urtwn0: Realtek (0x2c4e) 802.11n NIC (0x0102), rev 2.00/0.00, addr 2
[ 2.771437] urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, address
[ 2.801437] urtwn0: 1 rx pipe, 2 tx pipes
I leave a link to the diff below in case whitespaces are mangled.
https://raw.githubusercontent.com/sitmsiteman/etc/main/mercusys_mw150usv2.diff
Index: if_urtwn.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.107
diff -u -p -r1.107 if_urtwn.c
--- if_urtwn.c 1 Aug 2023 07:04:16 -0000 1.107
+++ if_urtwn.c 4 Jan 2024 18:35:23 -0000
@@ -215,6 +215,7 @@ static const struct urtwn_dev {
/* URTWN_RTL8188E */
URTWN_RTL8188E_DEV(DLINK, DWA125D1),
URTWN_RTL8188E_DEV(ELECOM, WDC150SU2M),
+ URTWN_RTL8188E_DEV(MERCUSYS, MW150USV2),
URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV),
URTWN_RTL8188E_DEV(REALTEK, RTL8188EU),
URTWN_RTL8188E_DEV(ABOCOM, RTL8188EU),
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.811
diff -u -p -r1.811 usbdevs
--- usbdevs 24 Dec 2023 02:42:51 -0000 1.811
+++ usbdevs 4 Jan 2024 18:35:23 -0000
@@ -586,6 +586,7 @@ vendor HIROSE 0x2631 Hirose Electric
vendor ONEPLUS 0x2717 ONEPLUS
vendor NHJ 0x2770 NHJ
vendor PLANEX 0x2c02 Planex Communications
+vendor MERCUSYS 0x2c4e Mercusys
vendor VIDZMEDIA 0x3275 VidzMedia Pte Ltd
vendor AEI 0x3334 AEI
vendor HANK 0x3353 Hank Connection
@@ -2288,6 +2289,9 @@ product MELCO WLIUCGNM 0x01a2 WLI-UC-GN
product MELCO WLIUCGNM2T 0x01ee WLI-UC-GNM2T
product MELCO WIU2300D 0x0241 WI-U2-300D
+/* Mercusys products */
+product MERCUSYS MW150USV2 0x0102 MW150US V2
+
/* Merlin products */
product MERLIN V620 0x1110 Merlin V620
>Release-Note:
>Audit-Trail:
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57819 CVS commit: src/sys/dev/usb
Date: Sat, 6 Jan 2024 00:24:07 +0000
Module Name: src
Committed By: maya
Date: Sat Jan 6 00:24:07 UTC 2024
Modified Files:
src/sys/dev/usb: usbdevs
Log Message:
Add Mercusys and Mercusys MW150USV2
From Daeil Lee in PR/57819
To generate a diff of this commit:
cvs rdiff -u -r1.811 -r1.812 src/sys/dev/usb/usbdevs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 06 Jan 2024 00:27:18 +0000
State-Changed-Why:
Applied, thanks!
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57819 CVS commit: src/sys/dev/usb
Date: Sat, 6 Jan 2024 00:26:27 +0000
Module Name: src
Committed By: maya
Date: Sat Jan 6 00:26:26 UTC 2024
Modified Files:
src/sys/dev/usb: if_urtwn.c
Log Message:
Add Mercusys NW150US V2 USB support
No changes needed, other than recognizing it as working.
From Daeil Lee in PR/57819
To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/dev/usb/if_urtwn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.