NetBSD-Bugs archive

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

kern/53461: axen doesn't support D-Link DUB-1312 USB network card



>Number:         53461
>Category:       kern
>Synopsis:       axen doesn't support D-Link DUB-1312 USB network card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 20 06:05:01 +0000 2018
>Originator:     Andrius V
>Release:        netbsd-8
>Organization:
>Environment:
>Description:
I bought D-Link DUB-1312 USB network card few days ago and tried it on NetBSD.. Unfortunately, it was unrecognized as a network card. After some investigation I found out that it is based on AX88179 and NetBSD already has driver for it (axen). So I made a patch just by adding it to the list of axen_devs. It was enough to make it work.

P.S. I also checked OpenBSD driver and it has few more devices listed in the driver. Not sure if it can be taken from them.
>How-To-Repeat:

>Fix:
Index: sys/dev/usb/if_axen.c
==================================================================
--- sys/dev/usb/if_axen.c
+++ sys/dev/usb/if_axen.c
@@ -77,11 +77,12 @@
  */
 static const struct axen_type axen_devs[] = {
 #if 0 /* not tested */
 	{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178A}, AX178A },
 #endif
-	{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88179}, AX179 }
+	{ { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88179}, AX179 },
+	{ { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DUB1312}, AX179 }
 };
 
 #define axen_lookup(v, p) ((const struct axen_type *)usb_lookup(axen_devs, v, p))
 
 static int	axen_match(device_t, cfdata_t, void *);


Index: sys/dev/usb/usbdevs
==================================================================
--- sys/dev/usb/usbdevs
+++ sys/dev/usb/usbdevs
@@ -1365,10 +1365,11 @@
 
 /* D-Link products */
 /*product DLINK DSBS25		0x0100	DSB-S25 serial adapter*/
 product DLINK DUBE100		0x1a00	10/100 ethernet adapter
 product DLINK DUBE100C1		0x1a02	DUB-E100 rev C1
+product DLINK DUB1312		0x4a00	DUB-1312
 product DLINK DSB650TX4		0x200c	10/100 ethernet adapter
 product DLINK DWL120E		0x3200	DWL-120 rev E
 product DLINK DWA130C		0x3301	DWA-130 rev C
 product DLINK RTL8192CU_1	0x3307	RTL8192CU
 product DLINK RTL8188CU		0x3308	RTL8188CU



Home | Main Index | Thread Index | Old Index