tech-kern archive

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

[PATCH] Add support for USB-WiFI Mercusys MW150US



It turns out to be a rebadging of a supported device. Simple addition to detection table is enough to make it work. It's broken down in 3 patches:
1. Adding to usbdevs
2. Running Makefile -f Makefile.usbdevs
3. Adding to detection tables
Since patch 2 is large and is pure regeneration I don't send it here but can do so upon request.
From abbf07df5d44227237fc0b32c5dc97955215dc28 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder%gmail.com@localhost>
Date: Sun, 30 Jul 2023 17:24:05 +0200
Subject: [PATCH 1/3] Add IDs for mercusys mw150us

---
 sys/dev/usb/usbdevs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 6bd4ccfb3..0e254d7d1 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -585,6 +585,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
@@ -2287,6 +2288,8 @@ product MELCO WLIUCGNM		0x01a2	WLI-UC-GNM
 product MELCO WLIUCGNM2T	0x01ee	WLI-UC-GNM2T
 product MELCO WIU2300D		0x0241	WI-U2-300D
 
+product MERCUSYS MW150US	0x0102	MW150US
+
 /* Merlin products */
 product MERLIN V620		0x1110	Merlin V620
 
-- 
2.40.1

From 46ce4395bedf6995b5607381d6a71fb491af7c58 Mon Sep 17 00:00:00 2001
From: Vladimir Serbinenko <phcoder%gmail.com@localhost>
Date: Sun, 30 Jul 2023 17:27:55 +0200
Subject: [PATCH 3/3] Add MW150US to supported IDS of urtwn

---
 sys/dev/usb/if_urtwn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c
index f591b646a..3d04ff737 100644
--- a/sys/dev/usb/if_urtwn.c
+++ b/sys/dev/usb/if_urtwn.c
@@ -221,6 +221,7 @@ static const struct urtwn_dev {
 	URTWN_RTL8188E_DEV(TPLINK, RTL8188EU),
 	URTWN_RTL8188E_DEV(DLINK, DWA121B1),
 	URTWN_RTL8188E_DEV(EDIMAX, EW7811UNV2),
+	URTWN_RTL8188E_DEV(MERCUSYS,	MW150US),
 
 	/* URTWN_RTL8192EU */
 	URTWN_RTL8192EU_DEV(DLINK,	DWA131E),
-- 
2.40.1



Home | Main Index | Thread Index | Old Index