On Mon, Sep 21, 2015 at 11:14:22AM +0200, Thuban wrote:
> Hi,
> I have a usb wifi dongle supposed to work with urtwn firmware.
> usbdevs returns WNA 1000Mv2 Netgear listed here [0]
> 
> But the device is detected as ugen.
> 
> How can I fix this?

This device was added to -current after 5.8.
It will work out of the box in OpenBSD 5.9.

The easiest way to get support for it is to use snapshots (i.e. -current).
See the "Snapshots" section in http://www.openbsd.org/faq/faq5.html#Flavors

You can try to get it to work with 5.7 but this might not work.
Getting this device to work on 5.8 (to be released on Oct 18) should be
possible using the steps below.

Starting with pristine OpenBSD 5.8 kernel source (or 5.7, if you want to
try your luck), add the line

product NETGEAR WNA1000Mv2      0x9043  WNA1000Mv2

somewhere in the file /usr/src/sys/dev/usb/usbdevs

as shown here:

===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.654
retrieving revision 1.655
diff -u -r1.654 -r1.655
--- src/sys/dev/usb/usbdevs     2015/07/15 13:25:49     1.654
+++ src/sys/dev/usb/usbdevs     2015/08/22 15:10:19     1.655
@@ -3135,6 +3135,7 @@
 product NETGEAR WNA1100                0x9030  WNA1100
 product NETGEAR WNA1000                0x9040  WNA1000
 product NETGEAR WNA1000M       0x9041  WNA1000M
+product NETGEAR WNA1000Mv2     0x9043  WNA1000Mv2
 
 /* Netgear(2) products */
 product NETGEAR2 MA101         0x4100  MA101


Now run 

  $ cd /usr/src/sys/dev/usb/
  $ make

to re-create the USB device list header files usbdevs.h and usbdevs_data.h.

Next, add the line

        { USB_VENDOR_NETGEAR,   USB_PRODUCT_NETGEAR_WNA1000Mv2 },

to /usr/src/sys/dev/usb/if_urtwn.c somewhere in the driver's ID table,
as shown here:

===================================================================
RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- src/sys/dev/usb/if_urtwn.c  2015/06/12 15:47:31     1.48
+++ src/sys/dev/usb/if_urtwn.c  2015/08/22 15:19:33     1.49
@@ -110,6 +110,7 @@
        { USB_VENDOR_IODATA,    USB_PRODUCT_IODATA_WNG150UM },
        { USB_VENDOR_IODATA,    USB_PRODUCT_IODATA_RTL8192CU },
        { USB_VENDOR_NETGEAR,   USB_PRODUCT_NETGEAR_WNA1000M },
+       { USB_VENDOR_NETGEAR,   USB_PRODUCT_NETGEAR_WNA1000Mv2 },
        { USB_VENDOR_NETGEAR,   USB_PRODUCT_NETGEAR_RTL8192CU },
        { USB_VENDOR_NETGEAR4,  USB_PRODUCT_NETGEAR4_RTL8188CU },
        { USB_VENDOR_NETWEEN,   USB_PRODUCT_NETWEEN_RTL8192CU },

Now compile a new kernel and install it.

For more information on the steps involved in compiling the kernel,
see http://www.openbsd.org/faq/faq5.html#Bld and in particular this
section: http://www.openbsd.org/faq/faq5.html#BldKernel

Reply via email to