Date: Fri, 17 Aug 2012 03:05:54 GMT From: "Thomas V. Crimi" <tcrimi@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: usb/170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53 Message-ID: <201208170305.q7H35sHr075242@red.freebsd.org> Resent-Message-ID: <201208170310.q7H3A8rn051824@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 170688
>Category: usb
>Synopsis: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 17 03:10:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Thomas V. Crimi
>Release: FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD eco 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Thu Aug 16 22:20:39 EDT 2012
>Description:
I bought an Asus Black Diamond Dual Band (2.4Ghz / 5Ghz) Wireless-N USB Adapter (USB-N53). It didn't initially work but once I added it to usbdevs and the if_run driver and now it works. I was inspired by Zahemszky at FreeBSD.org.
Only caveat is the driver is only work in 802.11g mode. It seems that the run driver does not support 802.11n yet.
usbconfig dump:
ugen2.5: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x0b05
idProduct = 0x179d
bcdDevice = 0x0101
iManufacturer = 0x0001 <Ralink>
iProduct = 0x0002 <802.11 n WLAN>
iSerialNumber = 0x0003 <1.0>
bNumConfigurations = 0x0001
>How-To-Repeat:
>Fix:
Patch attached
Patch attached with submission follows:
diff -ru sys.orig/dev/usb/usbdevs sys/dev/usb/usbdevs
--- sys.orig/dev/usb/usbdevs 2012-07-05 11:35:59.000000000 -0400
+++ sys/dev/usb/usbdevs 2012-08-16 22:44:53.000000000 -0400
@@ -1074,6 +1074,7 @@
product ASUS P535 0x420f ASUS P535 PDA
product ASUS GMSC 0x422f ASUS Generic Mass Storage
product ASUS RT2570 0x1706 RT2500USB Wireless Adapter
+product ASUS USB_N53 0x179d ASUS Black Diamond Dual Band USB-N53
/* ATen products */
product ATEN UC1284 0x2001 Parallel printer
diff -ru sys.orig/dev/usb/wlan/if_run.c sys/dev/usb/wlan/if_run.c
--- sys.orig/dev/usb/wlan/if_run.c 2012-06-11 13:23:24.000000000 -0400
+++ sys/dev/usb/wlan/if_run.c 2012-08-16 22:45:57.000000000 -0400
@@ -136,6 +136,7 @@
RUN_DEV(ASUS, RT2870_5),
RUN_DEV(ASUS, USBN13),
RUN_DEV(ASUS, RT3070_1),
+ RUN_DEV(ASUS, USB_N53),
RUN_DEV(ASUS2, USBN11),
RUN_DEV(AZUREWAVE, RT2870_1),
RUN_DEV(AZUREWAVE, RT2870_2),
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208170305.q7H35sHr075242>
