Hello, misc!
I propose a patch for working Wi-Fi device D-Link DWA-130 B1 and DWA-140 D1:
http://wikidevi.com/wiki/D-Link_DWA-137
http://wikidevi.com/wiki/D-Link_DWA-140_rev_D1
In my case, both devices were identifiable and worked on OpenBSD-6.1 amd64,
if anyone else has these devices, please confirm their function with my patch.
I hope that developers will include support for these devices.
Best regards,
Mike Korbakov
patch for OpenBSD-current:
Index: dev/usb/if_run.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_run.c,v
retrieving revision 1.122
diff -u -p -r1.122 if_run.c
--- dev/usb/if_run.c 2 Aug 2017 18:26:47 -0000 1.122
+++ dev/usb/if_run.c 13 Aug 2017 21:01:24 -0000
@@ -154,7 +154,9 @@ static const struct usb_devno run_devs[]
USB_ID(CYBERTAN, RT2870),
USB_ID(DLINK, DWA127),
USB_ID(DLINK, DWA130F1),
+ USB_ID(DLINK, DWA137A1),
USB_ID(DLINK, DWA140B3),
+ USB_ID(DLINK, DWA140D1),
USB_ID(DLINK, DWA160B2),
USB_ID(DLINK, DWA162),
USB_ID(DLINK, RT2870),
Index: dev/usb/usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.675
diff -u -p -r1.675 usbdevs
--- dev/usb/usbdevs 2 Aug 2017 18:25:45 -0000 1.675
+++ dev/usb/usbdevs 13 Aug 2017 21:01:24 -0000
@@ -1525,6 +1525,7 @@ product DLINK RTL8192CU_4 0x330b RTL8192
product DLINK DWA131B 0x330d DWA-131 rev B
product DLINK DWA125D1 0x330f DWA-125 rev D1
product DLINK DWA123D1 0x3310 DWA-123 rev D1
+product DLINK DWA137A1 0x3317 DWA-137 rev A1
product DLINK DWA131E1 0x3319 DWA-131 rev E1
product DLINK DWL122 0x3700 DWL-122
product DLINK DWLG120 0x3701 DWL-G120
@@ -1544,6 +1545,7 @@ product DLINK DWA140B3 0x3c15 DWA-140 r
product DLINK DWA160B2 0x3c1a DWA-160 rev B2
product DLINK DWA127 0x3c1b DWA-127
product DLINK DWA162 0x3c1f DWA-162 Wireless Adapter
+product DLINK DWA140D1 0x3c20 DWA-140 rev D1
product DLINK DWA130F1 0x3c25 DWA-130 rev F1
product DLINK DSB650C 0x4000 10Mbps Ethernet
product DLINK DSB650TX1 0x4001 10/100 Ethernet
Index: dev/usb/usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.687
diff -u -p -r1.687 usbdevs.h
--- dev/usb/usbdevs.h 2 Aug 2017 18:26:16 -0000 1.687
+++ dev/usb/usbdevs.h 13 Aug 2017 21:01:25 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs.h,v 1.687 2017/08/02 18:26:16 stsp Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -1532,6 +1532,7 @@
#define USB_PRODUCT_DLINK_DWA131B 0x330d /* DWA-131 rev
B */
#define USB_PRODUCT_DLINK_DWA125D1 0x330f /* DWA-125 rev
D1 */
#define USB_PRODUCT_DLINK_DWA123D1 0x3310 /* DWA-123 rev
D1 */
+#define USB_PRODUCT_DLINK_DWA137A1 0x3317 /* DWA-137 rev
A1 */
#define USB_PRODUCT_DLINK_DWA131E1 0x3319 /* DWA-131 rev
E1 */
#define USB_PRODUCT_DLINK_DWL122 0x3700 /* DWL-122 */
#define USB_PRODUCT_DLINK_DWLG120 0x3701 /* DWL-G120 */
@@ -1551,6 +1552,7 @@
#define USB_PRODUCT_DLINK_DWA160B2 0x3c1a /* DWA-160 rev
B2 */
#define USB_PRODUCT_DLINK_DWA127 0x3c1b /* DWA-127 */
#define USB_PRODUCT_DLINK_DWA162 0x3c1f /* DWA-162
Wireless Adapter */
+#define USB_PRODUCT_DLINK_DWA140D1 0x3c20 /* DWA-140 rev
D1 */
#define USB_PRODUCT_DLINK_DWA130F1 0x3c25 /* DWA-130 rev
F1 */
#define USB_PRODUCT_DLINK_DSB650C 0x4000 /* 10Mbps
Ethernet */
#define USB_PRODUCT_DLINK_DSB650TX1 0x4001 /* 10/100
Ethernet */
Index: dev/usb/usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.681
diff -u -p -r1.681 usbdevs_data.h
--- dev/usb/usbdevs_data.h 2 Aug 2017 18:26:16 -0000 1.681
+++ dev/usb/usbdevs_data.h 13 Aug 2017 21:01:26 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs_data.h,v 1.681 2017/08/02 18:26:16 stsp Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -2506,6 +2506,10 @@ const struct usb_known_product usb_known
"DWA-123 rev D1",
},
{
+ USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWA137A1,
+ "DWA-137 rev A1",
+ },
+ {
USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWA131E1,
"DWA-131 rev E1",
},
@@ -2580,6 +2584,10 @@ const struct usb_known_product usb_known
{
USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWA162,
"DWA-162 Wireless Adapter",
+ },
+ {
+ USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWA140D1,
+ "DWA-140 rev D1",
},
{
USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWA130F1,