Bug 207412 - urtwn: add entry for AboCom 802.11n usb device
Summary: urtwn: add entry for AboCom 802.11n usb device
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 10.2-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 10:38 UTC by pitwuu
Modified: 2016-02-23 10:28 UTC (History)
0 users

See Also:


Attachments
urtwn: add entry for AboCom 802.11n usb device (1.20 KB, patch)
2016-02-22 10:38 UTC, pitwuu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pitwuu 2016-02-22 10:38:09 UTC
Created attachment 167290 [details]
urtwn: add entry for AboCom 802.11n usb device

Hi there, I bought a 802.11n stick and it wasn't working out of the box on FreeBSD. Here is a very straightforward patch to add a USB entry so that urtwn picks it up correctly.

It has been tested on 10.2-RELEASE, and I confirm this hasn't been fixed in latest CURRENT series either.

Here's the dmesg log when I load the driver:
```
urtwn0: <Realtek 802.11n NIC, class 0/0, rev 2.00/0.00, addr 2> on usbus0
urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
```
I'm currently using this adapter to watch Youtube and write this issue.

You can also view the patch on github:
https://github.com/sinetek/freebsd/tree/user/sinetek/urtwn

Would appreciate if you can pull it in.
Thanks,

 -- Philippe Michaud-Boudreault <sinetek>


0001-urtwn-add-entry-for-AboCom-802.11n-usb-device.patch

====================================================


From fe491adcb4fddc383c83878ecd38862867248ad8 Mon Sep 17 00:00:00 2001
From: sinetek <pitwuu@gmail.com>
Date: Mon, 22 Feb 2016 17:26:01 +0700
Subject: [PATCH] urtwn: add entry for AboCom 802.11n usb device

---
 sys/dev/usb/usbdevs         | 1 +
 sys/dev/usb/wlan/if_urtwn.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index e4dfd37..85de31b 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -833,6 +833,7 @@ product ABOCOM RT2573_4		0xb21e	RT2573
 product ABOCOM RTL8188CU_1	0x8188  RTL8188CU
 product ABOCOM RTL8188CU_2	0x8189  RTL8188CU
 product ABOCOM RTL8192CU	0x8178  RTL8192CU
+product ABOCOM RTL8188EU	0x8179	RTL8188EU
 product ABOCOM WUG2700		0xb21f	WUG2700
 
 /* Acton Research Corp. */
diff --git a/sys/dev/usb/wlan/if_urtwn.c b/sys/dev/usb/wlan/if_urtwn.c
index 2475727..ff4b9ce 100644
--- a/sys/dev/usb/wlan/if_urtwn.c
+++ b/sys/dev/usb/wlan/if_urtwn.c
@@ -155,6 +155,7 @@ static const STRUCT_USB_HOST_ID urtwn_devs[] = {
 	URTWN_RTL8188E_DEV(DLINK,	DWA125D1),
 	URTWN_RTL8188E_DEV(REALTEK,	RTL8188ETV),
 	URTWN_RTL8188E_DEV(REALTEK,	RTL8188EU),
+	URTWN_RTL8188E_DEV(ABOCOM,	RTL8188EU),
 #undef URTWN_RTL8188E_DEV
 #undef URTWN_DEV
 };
-- 
2.4.6
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-02-23 01:57:54 UTC
A commit references this bug:

Author: kevlo
Date: Tue Feb 23 01:56:58 UTC 2016
New revision: 295907
URL: https://svnweb.freebsd.org/changeset/base/295907

Log:
  Add device ID for 'AboCom 802.11n' usb.

  PR:	207412
  Submitted by:	Philippe Michaud-Boudreault <pitwuu at gmail dot com>

Changes:
  head/sys/dev/usb/usbdevs
  head/sys/dev/usb/wlan/if_urtwn.c