old new device: another sample of DWA-125
Kevin Lo
kevlo at FreeBSD.org
Fri Aug 15 01:41:58 UTC 2014
On Wed, Aug 13, 2014 at 04:25:33PM +0300, Volodymyr Kostyrko wrote:
>
> Hi all.
Hi,
> I have something called DWA-125 (model D1A, h/w ver: D1, f/w ver: 4.00).
>
> # usbconfig -d 6.2 dump_device_desc
> ugen6.2: <product 0x330f vendor 0x2001> at usbus6, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=ON (500mA)
>
> bLength = 0x0012
> bDescriptorType = 0x0001
> bcdUSB = 0x0200
> bDeviceClass = 0x0000
> bDeviceSubClass = 0x0000
> bDeviceProtocol = 0x0000
> bMaxPacketSize0 = 0x0040
> idVendor = 0x2001
> idProduct = 0x330f
> bcdDevice = 0x0000
> iManufacturer = 0x0001 <Realtek>
> iProduct = 0x0002 <DWA-125 11n Adapter>
> iSerialNumber = 0x0003 <C4A81DF3B74A>
> bNumConfigurations = 0x0001
>
> Patch to detect it:
>
> Index: sys/dev/usb/usbdevs
> ===================================================================
> --- sys/dev/usb/usbdevs (revision 269923)
> +++ sys/dev/usb/usbdevs (working copy)
> @@ -1624,6 +1624,7 @@
> product DLINK RTL8192CU_1 0x3307 RTL8192CU
> product DLINK RTL8192CU_2 0x3309 RTL8192CU
> product DLINK RTL8192CU_3 0x330a RTL8192CU
> +product DLINK RTL8192CU_4 0x330f RTL8192CU
> product DLINK DWA131B 0x330d DWA-131 rev B
> product DLINK2 RTL8192SU_1 0x3300 RTL8192SU
> product DLINK2 RTL8192SU_2 0x3302 RTL8192SU
> Index: sys/dev/usb/wlan/if_urtwn.c
> ===================================================================
> --- sys/dev/usb/wlan/if_urtwn.c (revision 269923)
> +++ sys/dev/usb/wlan/if_urtwn.c (working copy)
> @@ -112,6 +112,7 @@
> URTWN_DEV(DLINK, RTL8192CU_1),
> URTWN_DEV(DLINK, RTL8192CU_2),
> URTWN_DEV(DLINK, RTL8192CU_3),
> + URTWN_DEV(DLINK, RTL8192CU_4),
> URTWN_DEV(DLINK, DWA131B),
> URTWN_DEV(EDIMAX, EW7811UN),
> URTWN_DEV(EDIMAX, RTL8192CU),
>
> # kldload urtwn
> Aug 13 16:10:19 limbo kernel: urtwn0: <vendor 0x2001 product 0x330f,
> class 0/0, rev 2.00/0.00, addr 1> on usbus6
> Aug 13 16:10:20 limbo kernel: urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
>
> urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
> ether 00:00:a8:1d:f3:b7
> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
> status: no carrier
>
> # ifconfig wlan0 create wlandev urtwn0
> # ifconfig wlan0 country ua
> # ifconfig wlan0 up scan
>
> Gives nothing.
>
> # ifconfig wlan0
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> ether 00:00:a8:1d:f3:b7
> inet6 fe80::200:a8ff:fe1d:f3b7%wlan0 prefixlen 64 scopeid 0x7
> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
> status: no carrier
> ssid "" channel 1 (2412 MHz 11b)
> regdomain NONE country UA authmode OPEN privacy OFF txpower 30
> bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
> roam:rssi 7
> roam:rate 1 bintval 0
>
> # ifconfig wlan0 list caps
> drivercaps=2181c001<STA,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN>
>
> Is there any easy way to make it work or should I just dump it?
The D-Link DWA-125 rev D1 uses the RTL8188EU chip.
Please try this patch, thanks.
Index: sys/dev/usb/usbdevs
===================================================================
--- sys/dev/usb/usbdevs (revision 270007)
+++ sys/dev/usb/usbdevs (working copy)
@@ -1592,6 +1592,7 @@ product DLINK DUBE100 0x1a00 10/100 Ethernet
product DLINK DUBE100C1 0x1a02 DUB-E100 rev C1
product DLINK DSB650TX4 0x200c 10/100 Ethernet
product DLINK DWL120E 0x3200 DWL-120 rev E
+product DLINK DWA125D1 0x330f DWA-125 rev D1
product DLINK DWL122 0x3700 DWL-122
product DLINK DWLG120 0x3701 DWL-G120
product DLINK DWL120F 0x3702 DWL-120 rev F
Index: sys/dev/usb/wlan/if_urtwn.c
===================================================================
--- sys/dev/usb/wlan/if_urtwn.c (revision 270007)
+++ sys/dev/usb/wlan/if_urtwn.c (working copy)
@@ -152,6 +152,7 @@ static const STRUCT_USB_HOST_ID urtwn_devs[] = {
URTWN_DEV(TRENDNET, RTL8192CU),
URTWN_DEV(ZYXEL, RTL8192CU),
/* URTWN_RTL8188E */
+ URTWN_RTL8188E_DEV(DLINK, DWA125D1),
URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV),
URTWN_RTL8188E_DEV(REALTEK, RTL8188EU),
#undef URTWN_RTL8188E_DEV
More information about the freebsd-wireless
mailing list