Hello tech@, This patch adds Mercusys MW150US to urtwn(4) supported hardware. I tested two devices and both worked.
# dmesg urtwn0 at uhub0 port 1 configuration 1 interface 0 "Realtek 802.11n NIC" rev 2.00/0.00 addr 2 urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, address 00:eb:d8:xx:xx:xx # usbdevs addr 02: 2c4e:0102 Realtek, 802.11n NIC Index: usbdevs =================================================================== RCS file: /cvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.752 diff -u -p -u -p -r1.752 usbdevs --- usbdevs 9 Nov 2022 10:03:04 -0000 1.752 +++ usbdevs 12 Jun 2023 08:17:16 -0000 @@ -645,6 +645,7 @@ vendor THINGM 0x27b8 ThingM vendor ASUSTEK 0x2821 ASUSTeK Computer vendor PIONEERDJ 0x2b73 Pioneer DJ vendor PLANEX 0x2c02 Planex Communications +vendor MERCUSYS 0x2c4e Mercusys vendor QUECTEL 0x2c7c Quectel vendor CLUB3D 0x2d1c Club 3D vendor AQUANTIA 0x2eca Aquantia @@ -3097,6 +3098,9 @@ product MELCO WLIUCG301N 0x016f WLI-UC-G product MELCO UWABR100 0x017f SONY UWA-BR100 product MELCO WLIUCGNM 0x01a2 WLI-UC-GNM product MELCO WLIUCGNM2 0x01ee WLI-UC-GNM2 + +/* Mercusys products */ +product MERCUSYS MW150US 0x0102 Mercusys MW150US /* MetaGeek products */ product METAGEEK WISPY24I 0x2400 Wi-Spy 2.4i Index: if_urtwn.c =================================================================== RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v retrieving revision 1.105 diff -u -p -u -p -r1.105 if_urtwn.c --- if_urtwn.c 8 Mar 2023 04:43:08 -0000 1.105 +++ if_urtwn.c 12 Jun 2023 08:17:17 -0000 @@ -328,6 +328,7 @@ static const struct urtwn_type { URTWN_DEV_8188EU(DLINK, DWA125D1), URTWN_DEV_8188EU(EDIMAX, EW7811UNV2), URTWN_DEV_8188EU(ELECOM, WDC150SU2M), + URTWN_DEV_8188EU(MERCUSYS, MW150US), URTWN_DEV_8188EU(REALTEK, RTL8188ETV), URTWN_DEV_8188EU(REALTEK, RTL8188EU), URTWN_DEV_8188EU(TPLINK, RTL8188EUS),