Re: run(4) D-Link DWA-130 rev F1

2017-08-02 Thread Stefan Sperling
On Wed, Aug 02, 2017 at 10:08:51AM -0700, Jacqueline Jolicoeur wrote:
> Hi,
> 
> I have a D-Link DWA-130 rev F1 which was not being detected.
> 
> I took a guess and made this kernel patch for run(4) which seems
> to work for me thus far. The device is now detected, connects with
> nwid, wpakey and dhclient. The 0x3c25 magic is from usbdevs(8)
> 
> Tested using amd64 GENERIC.MP -current

Committed, thanks!

> 
> Index: share/man/man4/run.4
> ===
> RCS file: /cvs/src/share/man/man4/run.4,v
> retrieving revision 1.49
> diff -u -p -r1.49 run.4
> --- share/man/man4/run.4  13 Jul 2017 08:10:50 -  1.49
> +++ share/man/man4/run.4  2 Aug 2017 05:21:21 -
> @@ -120,7 +120,7 @@ The following adapters should work:
>  .It Corega CG-WLUSB300AGN
>  .It Corega CG-WLUSB300GNM
>  .It D-Link DWA-127
> -.It D-Link DWA-130 rev B1
> +.It D-Link DWA-130 rev B1, F1
>  .It D-Link DWA-140 rev B1, B2, B3, \&D1
>  .It D-Link DWA-160 rev B2
>  .It D-Link DWA-162
> Index: sys/dev/usb/if_run.c
> ===
> RCS file: /cvs/src/sys/dev/usb/if_run.c,v
> retrieving revision 1.121
> diff -u -p -r1.121 if_run.c
> --- sys/dev/usb/if_run.c  21 Jul 2017 00:55:05 -  1.121
> +++ sys/dev/usb/if_run.c  2 Aug 2017 05:21:31 -
> @@ -153,6 +153,7 @@ static const struct usb_devno run_devs[]
>   USB_ID(COREGA,  RT3070),
>   USB_ID(CYBERTAN,RT2870),
>   USB_ID(DLINK,   DWA127),
> + USB_ID(DLINK,   DWA130F1),
>   USB_ID(DLINK,   DWA140B3),
>   USB_ID(DLINK,   DWA160B2),
>   USB_ID(DLINK,   DWA162),
> Index: sys/dev/usb/usbdevs
> ===
> RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.674
> diff -u -p -r1.674 usbdevs
> --- sys/dev/usb/usbdevs   6 Jun 2017 00:52:02 -   1.674
> +++ sys/dev/usb/usbdevs   2 Aug 2017 05:21:32 -
> @@ -1544,6 +1544,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 DWA130F1   0x3c25  DWA-130 rev F1
>  product DLINK DSB650C0x4000  10Mbps Ethernet
>  product DLINK DSB650TX1  0x4001  10/100 Ethernet
>  product DLINK DSB650TX   0x4002  10/100 Ethernet
> 



run(4) D-Link DWA-130 rev F1

2017-08-02 Thread Jacqueline Jolicoeur
Hi,

I have a D-Link DWA-130 rev F1 which was not being detected.

I took a guess and made this kernel patch for run(4) which seems
to work for me thus far. The device is now detected, connects with
nwid, wpakey and dhclient. The 0x3c25 magic is from usbdevs(8)

Tested using amd64 GENERIC.MP -current

Index: share/man/man4/run.4
===
RCS file: /cvs/src/share/man/man4/run.4,v
retrieving revision 1.49
diff -u -p -r1.49 run.4
--- share/man/man4/run.413 Jul 2017 08:10:50 -  1.49
+++ share/man/man4/run.42 Aug 2017 05:21:21 -
@@ -120,7 +120,7 @@ The following adapters should work:
 .It Corega CG-WLUSB300AGN
 .It Corega CG-WLUSB300GNM
 .It D-Link DWA-127
-.It D-Link DWA-130 rev B1
+.It D-Link DWA-130 rev B1, F1
 .It D-Link DWA-140 rev B1, B2, B3, \&D1
 .It D-Link DWA-160 rev B2
 .It D-Link DWA-162
Index: sys/dev/usb/if_run.c
===
RCS file: /cvs/src/sys/dev/usb/if_run.c,v
retrieving revision 1.121
diff -u -p -r1.121 if_run.c
--- sys/dev/usb/if_run.c21 Jul 2017 00:55:05 -  1.121
+++ sys/dev/usb/if_run.c2 Aug 2017 05:21:31 -
@@ -153,6 +153,7 @@ static const struct usb_devno run_devs[]
USB_ID(COREGA,  RT3070),
USB_ID(CYBERTAN,RT2870),
USB_ID(DLINK,   DWA127),
+   USB_ID(DLINK,   DWA130F1),
USB_ID(DLINK,   DWA140B3),
USB_ID(DLINK,   DWA160B2),
USB_ID(DLINK,   DWA162),
Index: sys/dev/usb/usbdevs
===
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.674
diff -u -p -r1.674 usbdevs
--- sys/dev/usb/usbdevs 6 Jun 2017 00:52:02 -   1.674
+++ sys/dev/usb/usbdevs 2 Aug 2017 05:21:32 -
@@ -1544,6 +1544,7 @@ product DLINK DWA140B30x3c15  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 DWA130F1 0x3c25  DWA-130 rev F1
 product DLINK DSB650C  0x4000  10Mbps Ethernet
 product DLINK DSB650TX10x4001  10/100 Ethernet
 product DLINK DSB650TX 0x4002  10/100 Ethernet