DLink DWM-222 revision A2

From: Matthew Luckie <mjl_at_luckie.org.nz>
Date: Tue, 15 Feb 2022 08:13:38 UTC
Hi,

I purchased a DLink DWM-222 4G LTE USB stick, which is at revision A2
and requires new device IDs.  I embed a patch below that has the new
IDs.

Its been more than 10 years since I've done make buildworld, and I
would prefer not to buildworld -- the CPU is a low-powered Intel atom
running an i386 kernel.  Can someone let me know what the minimum set
of steps I require to get a new u3g kernel module plus anything else
necessary?  If I have to buildworld, let me know.

Thanks,

Matthew

--- usbdevs.orig	2022-01-12 20:35:11.417935000 +1300
+++ usbdevs	2022-02-15 20:54:11.843014000 +1300
@@ -1749,10 +1749,12 @@
 product DLINK DWM157_2		0x7d0e  DWM-157	
 product DLINK DWR510		0x7e12	DWR-510
 product DLINK DWM222		0x7e35	DWM-222
+product DLINK DWM222_2		0x7e3d	DWM-222
 product DLINK DWM157_CD_2	0xa407  DWM-157 CD-ROM Mode
 product DLINK DWM157_CD		0xa707  DWM-157 CD-ROM Mode
 product DLINK DWR510_CD		0xa805	DWR-510 CD-ROM Mode
 product DLINK DWM222_CD		0xab00	DWM-222 CD-ROM Mode
+product DLINK DWM222_CD_2	0xac01	DWM-222 CD-ROM Mode
 product DLINK DSB650		0xabc1	10/100 Ethernet
 product DLINK DUBH7		0xf103	DUB-H7 USB 2.0 7-Port Hub
 product DLINK2 RTL8192SU_1	0x3300	RTL8192SU
--- u3g.c.orig	2022-01-12 20:35:08.878410000 +1300
+++ u3g.c	2022-02-15 20:55:30.705116000 +1300
@@ -242,6 +242,8 @@
 	U3G_DEV(DLINK, DWM157_2, 0),
 	U3G_DEV(DLINK, DWM222_CD, U3GINIT_SCSIEJECT),
 	U3G_DEV(DLINK, DWM222, 0),
+	U3G_DEV(DLINK, DWM222_CD_2, U3GINIT_SCSIEJECT),
+	U3G_DEV(DLINK, DWM222_2, 0),
 	U3G_DEV(DLINK3, DWM652, 0),
 	U3G_DEV(HP, EV2200, 0),
 	U3G_DEV(HP, HS2300, 0),