Bug 170688 - patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
Summary: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 9.1-PRERELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-08-17 04:10 UTC by Thomas V. Crimi
Modified: 2018-12-18 04:45 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (934 bytes, patch)
2012-08-17 04:10 UTC, Thomas V. Crimi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas V. Crimi 2012-08-17 04:10:07 UTC
  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

Fix: Patch attached

Patch attached with submission follows:
Comment 1 dfilter service freebsd_committer freebsd_triage 2012-08-17 17:27:31 UTC
Author: hselasky
Date: Fri Aug 17 16:27:11 2012
New Revision: 239358
URL: http://svn.freebsd.org/changeset/base/239358

Log:
  Add new USB device ID.
  
  PR:		usb/170688
  MFC after:	1 week

Modified:
  head/sys/dev/usb/usbdevs
  head/sys/dev/usb/wlan/if_run.c

Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs	Fri Aug 17 16:01:24 2012	(r239357)
+++ head/sys/dev/usb/usbdevs	Fri Aug 17 16:27:11 2012	(r239358)
@@ -1118,6 +1118,7 @@ product ASUS A730W		0x4202	ASUS MyPal A7
 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

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Fri Aug 17 16:01:24 2012	(r239357)
+++ head/sys/dev/usb/wlan/if_run.c	Fri Aug 17 16:27:11 2012	(r239358)
@@ -136,6 +136,7 @@ static const STRUCT_USB_HOST_ID run_devs
     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),
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 2 Hans Petter Selasky 2012-08-17 17:29:02 UTC
On Friday 17 August 2012 05:05:54 Thomas V. Crimi wrote:
> 170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
> From:

Hi,

I think not all chips have the same features.

Does the packing say that the stick supports 11n ?

--HPS
Comment 3 Thomas V. Crimi 2012-08-17 18:51:00 UTC
On Aug 17, 2012, at 12:29 PM, Hans Petter Selasky <hselasky@c2i.net> =
wrote:

> On Friday 17 August 2012 05:05:54 Thomas V. Crimi wrote:
>> 170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
> Does the packing say that the stick supports 11n ?
>=20

 Yes, I also see it doing 11n under windows.   Knowing that it should =
work, though, I'll see if I can dig anything up.  I haven't used Wifi =
under FBSD in many years.

  Are there any dump commands that would be helpful to send?
Comment 4 Hans Petter Selasky 2012-08-17 20:36:38 UTC
On Friday 17 August 2012 19:51:00 Thomas Crimi wrote:
> On Aug 17, 2012, at 12:29 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
> > On Friday 17 August 2012 05:05:54 Thomas V. Crimi wrote:
> >> 170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
> > 
> > Does the packing say that the stick supports 11n ?
> 
>  Yes, I also see it doing 11n under windows.   Knowing that it should work,
> though, I'll see if I can dig anything up.  I haven't used Wifi under FBSD
> in many years.
> 
>   Are there any dump commands that would be helpful to send?

Check the if_run.c when it enables 11n support.

--HPS
Comment 5 PseudoCylon 2012-08-18 04:07:50 UTC
On Fri, Aug 17, 2012 at 1:36 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
> On Friday 17 August 2012 19:51:00 Thomas Crimi wrote:
>> On Aug 17, 2012, at 12:29 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
>> > On Friday 17 August 2012 05:05:54 Thomas V. Crimi wrote:
>> >> 170688: patch][usbdevs][wlan] Patch for ASUS Black Diamond USB-N53
>> >
>> > Does the packing say that the stick supports 11n ?
>>
>>  Yes, I also see it doing 11n under windows.   Knowing that it should work,
>> though, I'll see if I can dig anything up.  I haven't used Wifi under FBSD
>> in many years.
>>
>>   Are there any dump commands that would be helpful to send?
>
> Check the if_run.c when it enables 11n support.

Adding 11n support is almost done. All I have left to do is to look
after one LOR that almost guarantees deadlock.  Stay tuned.


AK
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:19 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 7 Andriy Voskoboinyk freebsd_committer freebsd_triage 2018-12-18 04:45:49 UTC
USB id is in the tree (as noted in comment #1)