Fri Jul 25 15:07:03 2014 UTC ()
Added ELECOM WDC-150SU2M support.


(nonaka)
diff -r1.13 -r1.14 src/share/man/man4/urtwn.4
diff -r1.33 -r1.34 src/sys/dev/usb/if_urtwn.c

cvs diff -r1.13 -r1.14 src/share/man/man4/urtwn.4 (expand / switch to unified diff)

--- src/share/man/man4/urtwn.4 2014/07/20 14:02:54 1.13
+++ src/share/man/man4/urtwn.4 2014/07/25 15:07:03 1.14
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1.\" $NetBSD: urtwn.4,v 1.13 2014/07/20 14:02:54 nonaka Exp $ 1.\" $NetBSD: urtwn.4,v 1.14 2014/07/25 15:07:03 nonaka Exp $
2.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $ 2.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $
3.\" 3.\"
4.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 4.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5.\" 5.\"
6.\" Permission to use, copy, modify, and distribute this software for any 6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above 7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies. 8.\" copyright notice and this permission notice appear in all copies.
9.\" 9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\" 17.\"
18.Dd July 20, 2014 18.Dd July 25, 2014
19.Dt URTWN 4 19.Dt URTWN 4
20.Os 20.Os
21.Sh NAME 21.Sh NAME
22.Nm urtwn 22.Nm urtwn
23.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU USB IEEE 802.11b/g/n wireless network device 23.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
24.Sh SYNOPSIS 24.Sh SYNOPSIS
25.Cd "urtwn* at uhub? port ?" 25.Cd "urtwn* at uhub? port ?"
26.Sh DESCRIPTION 26.Sh DESCRIPTION
27The 27The
28.Nm 28.Nm
29driver supports USB 2.0 wireless network devices based on Realtek 29driver supports USB 2.0 wireless network devices based on Realtek
30RTL8188CUS, RTL8188CE-VAU, RTL8188EUS, RTL8188RU, and RTL8192CU chipsets. 30RTL8188CUS, RTL8188CE-VAU, RTL8188EUS, RTL8188RU, and RTL8192CU chipsets.
31.Pp 31.Pp
@@ -102,26 +102,27 @@ The following adapters should work: @@ -102,26 +102,27 @@ The following adapters should work:
102.Pp 102.Pp
103.Bl -tag -width Ds -offset indent -compact 103.Bl -tag -width Ds -offset indent -compact
104.It Airlink101 AWLL5088 104.It Airlink101 AWLL5088
105.It Aus. Linx AL-9604R1S 105.It Aus. Linx AL-9604R1S
106.It ASUSTeK USB-N10 NANO 106.It ASUSTeK USB-N10 NANO
107.It B-Link BL-LW05-5R 107.It B-Link BL-LW05-5R
108.It Belkin F7D1102 Surf Wireless Micro 108.It Belkin F7D1102 Surf Wireless Micro
109.It D-Link DWA-121 109.It D-Link DWA-121
110.It D-Link DWA-133 110.It D-Link DWA-133
111.It D-Link DWA-135 111.It D-Link DWA-135
112.It Digitus DN-7042 112.It Digitus DN-7042
113.It Edimax EW-7811Un 113.It Edimax EW-7811Un
114.It EDUP EP-N8508 114.It EDUP EP-N8508
 115.It ELECOM WDC-150SU2M
115.It Full River FR-W100NUL 116.It Full River FR-W100NUL
116.It Hercules Wireless N USB Pico HWNUp-150 117.It Hercules Wireless N USB Pico HWNUp-150
117.It Netgear WNA1000A 118.It Netgear WNA1000A
118.It Planex GW-USEco300 119.It Planex GW-USEco300
119.It Planex GW-USNano2 120.It Planex GW-USNano2
120.It Planex GW-USValue-EZ 121.It Planex GW-USValue-EZ
121.It Planex GW-USWExtreme 122.It Planex GW-USWExtreme
122.It POWCHIP POW-N18 123.It POWCHIP POW-N18
123.It Sitecom N300 USB (WLA-2102 v1) 124.It Sitecom N300 USB (WLA-2102 v1)
124.It Sitecom WL-365 125.It Sitecom WL-365
125.It Solwise NET-WL-UMD-606N 126.It Solwise NET-WL-UMD-606N
126.It TP-LINK TL-WN723N v3 127.It TP-LINK TL-WN723N v3
127.It TP-LINK TL-WN725N v2 128.It TP-LINK TL-WN725N v2

cvs diff -r1.33 -r1.34 src/sys/dev/usb/if_urtwn.c (expand / switch to unified diff)

--- src/sys/dev/usb/if_urtwn.c 2014/07/20 14:02:53 1.33
+++ src/sys/dev/usb/if_urtwn.c 2014/07/25 15:07:03 1.34
@@ -1,39 +1,39 @@ @@ -1,39 +1,39 @@
1/* $NetBSD: if_urtwn.c,v 1.33 2014/07/20 14:02:53 nonaka Exp $ */ 1/* $NetBSD: if_urtwn.c,v 1.34 2014/07/25 15:07:03 nonaka Exp $ */
2/* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */ 2/* $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $ */
3 3
4/*- 4/*-
5 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
6 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> 6 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org>
7 * 7 *
8 * Permission to use, copy, modify, and distribute this software for any 8 * Permission to use, copy, modify, and distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above 9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies. 10 * copyright notice and this permission notice appear in all copies.
11 * 11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */ 19 */
20 20
21/*- 21/*-
22 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. 22 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU.
23 */ 23 */
24 24
25#include <sys/cdefs.h> 25#include <sys/cdefs.h>
26__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.33 2014/07/20 14:02:53 nonaka Exp $"); 26__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.34 2014/07/25 15:07:03 nonaka Exp $");
27 27
28#ifdef _KERNEL_OPT 28#ifdef _KERNEL_OPT
29#include "opt_inet.h" 29#include "opt_inet.h"
30#endif 30#endif
31 31
32#include <sys/param.h> 32#include <sys/param.h>
33#include <sys/sockio.h> 33#include <sys/sockio.h>
34#include <sys/sysctl.h> 34#include <sys/sysctl.h>
35#include <sys/mbuf.h> 35#include <sys/mbuf.h>
36#include <sys/kernel.h> 36#include <sys/kernel.h>
37#include <sys/socket.h> 37#include <sys/socket.h>
38#include <sys/systm.h> 38#include <sys/systm.h>
39#include <sys/malloc.h> 39#include <sys/malloc.h>
@@ -154,26 +154,27 @@ static const struct urtwn_dev { @@ -154,26 +154,27 @@ static const struct urtwn_dev {
154 URTWN_DEV(REALTEK, RTL8188RU_2), 154 URTWN_DEV(REALTEK, RTL8188RU_2),
155 URTWN_DEV(REALTEK, RTL8191CU), 155 URTWN_DEV(REALTEK, RTL8191CU),
156 URTWN_DEV(REALTEK, RTL8192CE), 156 URTWN_DEV(REALTEK, RTL8192CE),
157 URTWN_DEV(REALTEK, RTL8192CU), 157 URTWN_DEV(REALTEK, RTL8192CU),
158 URTWN_DEV(SITECOMEU, RTL8188CU), 158 URTWN_DEV(SITECOMEU, RTL8188CU),
159 URTWN_DEV(SITECOMEU, RTL8188CU_2), 159 URTWN_DEV(SITECOMEU, RTL8188CU_2),
160 URTWN_DEV(SITECOMEU, RTL8192CU), 160 URTWN_DEV(SITECOMEU, RTL8192CU),
161 URTWN_DEV(SITECOMEU, RTL8192CUR2), 161 URTWN_DEV(SITECOMEU, RTL8192CUR2),
162 URTWN_DEV(TRENDNET, RTL8188CU), 162 URTWN_DEV(TRENDNET, RTL8188CU),
163 URTWN_DEV(TRENDNET, RTL8192CU), 163 URTWN_DEV(TRENDNET, RTL8192CU),
164 URTWN_DEV(ZYXEL, RTL8192CU), 164 URTWN_DEV(ZYXEL, RTL8192CU),
165 165
166 /* URTWN_RTL8188E */ 166 /* URTWN_RTL8188E */
 167 URTWN_RTL8188E_DEV(ELECOM, WDC150SU2M),
167 URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV), 168 URTWN_RTL8188E_DEV(REALTEK, RTL8188ETV),
168 URTWN_RTL8188E_DEV(REALTEK, RTL8188EU), 169 URTWN_RTL8188E_DEV(REALTEK, RTL8188EU),
169}; 170};
170#undef URTWN_DEV 171#undef URTWN_DEV
171#undef URTWN_RTL8188E_DEV 172#undef URTWN_RTL8188E_DEV
172 173
173static int urtwn_match(device_t, cfdata_t, void *); 174static int urtwn_match(device_t, cfdata_t, void *);
174static void urtwn_attach(device_t, device_t, void *); 175static void urtwn_attach(device_t, device_t, void *);
175static int urtwn_detach(device_t, int); 176static int urtwn_detach(device_t, int);
176static int urtwn_activate(device_t, enum devact); 177static int urtwn_activate(device_t, enum devact);
177 178
178CFATTACH_DECL_NEW(urtwn, sizeof(struct urtwn_softc), urtwn_match, 179CFATTACH_DECL_NEW(urtwn, sizeof(struct urtwn_softc), urtwn_match,
179 urtwn_attach, urtwn_detach, urtwn_activate); 180 urtwn_attach, urtwn_detach, urtwn_activate);