From owner-freebsd-usb@FreeBSD.ORG Fri Aug 17 03:10:08 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 591CA106564A for ; Fri, 17 Aug 2012 03:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 32D9F8FC14 for ; Fri, 17 Aug 2012 03:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7H3A8g4051825 for ; Fri, 17 Aug 2012 03:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7H3A8rn051824; Fri, 17 Aug 2012 03:10:08 GMT (envelope-from gnats) Resent-Date: Fri, 17 Aug 2012 03:10:08 GMT Resent-Message-Id: <201208170310.q7H3A8rn051824@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Thomas V. Crimi" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3463106564A for ; Fri, 17 Aug 2012 03:05:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B52818FC0A for ; Fri, 17 Aug 2012 03:05:54 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7H35s6V075243 for ; Fri, 17 Aug 2012 03:05:54 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7H35sHr075242; Fri, 17 Aug 2012 03:05:54 GMT (envelope-from nobody) Message-Id: <201208170305.q7H35sHr075242@red.freebsd.org> Date: Fri, 17 Aug 2012 03:05:54 GMT From: "Thomas V. Crimi" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2012 03:10:08 -0000 >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 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: