kernel/usb4bsd: Bring in urtwn(4) and firmware.
[dragonfly.git] / share / man / man4 / urtwn.4
1 .\" $OpenBSD: urtwn.4,v 1.20 2013/05/16 10:02:59 sthen Exp $
2 .\" $FreeBSD: src/share/man/man4/urtwn.4,v 1.3 2013/06/26 00:26:08 svnexp Exp $
3 .\"
4 .\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5 .\"
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
8 .\" copyright notice and this permission notice appear in all copies.
9 .\"
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
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
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .\"
18 .Dd August 19, 2013
19 .Dt URTWN 4
20 .Os
21 .Sh NAME
22 .Nm urtwn
23 .Nd Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
24 .Sh SYNOPSIS
25 To compile this driver into the kernel,
26 place the following lines in your
27 kernel configuration file:
28 .Bd -ragged -offset indent
29 .Cd "device ehci"
30 .Cd "device uhci"
31 .Cd "device ohci"
32 .Cd "device usb4bsd"
33 .Cd "device urtwn"
34 .Cx "device urtwnfw"
35 .Cd "device wlan"
36 .Ed
37 .Pp
38 Alternatively, to load the driver as a
39 module at boot time, place the following line in
40 .Xr loader.conf 5 :
41 .Bd -literal -offset indent
42 if_urtwn_load="YES"
43 urtwn-rtl8192cfwT_load="YES"
44 urtwn-rtl8192cfwU_load="YES"
45 .Ed
46 .Pp
47 In both cases, place the following line in
48 .Xr loader.conf 5
49 to acknowledge the firmware license (see below):
50 .Bd -literal -offset indent
51 legal.realtek.license_ack=1
52 .Ed
53 .Sh DESCRIPTION
54 The
55 .Nm
56 driver supports USB 2.0 wireless network devices based on Realtek
57 RTL8188CUS, RTL8188CE-VAU, RTL8188RU and RTL8192CU chipsets.
58 .Pp
59 The RTL8188CUS is a highly integrated 802.11n adapter that combines
60 a MAC, a 1T1R capable baseband and an RF in a single chip.
61 It operates in the 2GHz spectrum only.
62 The RTL8188RU is a high-power variant of the RTL8188CUS.
63 The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches
64 to the USB interface.
65 .Pp
66 The RTL8192CU is a highly integrated multiple-in, multiple-out (MIMO)
67 802.11n adapter that combines a MAC, a 2T2R capable baseband and an
68 RF in a single chip.
69 It operates in the 2GHz spectrum only.
70 .Pp
71 The driver needs at least version 1.1p0 of the following firmware files,
72 which are loaded when an interface is attached:
73 .Pp
74 .Bl -tag -width Ds -offset indent -compact
75 .It urtwn-rtl8192cfwT
76 .It urtwn-rtl8192cfwU
77 .El
78 .Pp
79 For the loaded firmware to be enabled for use the license at
80 .Pa /usr/share/doc/legal/realtek/LICENSE
81 must be agreed to by adding the following line to
82 .Xr loader.conf 5 :
83 .Pp
84 .Dl "legal.realtek.license_ack=1"
85 .Sh FILES
86 .Bl -tag -width ".Pa /usr/share/doc/legal/realtek/LICENSE" -compact
87 .It Pa /usr/share/doc/legal/realtek/LICENSE
88 .Nm
89 firmware license
90 .El
91 .Sh HARDWARE
92 The following adapters should work:
93 .Pp
94 .Bl -tag -width Ds -offset indent -compact
95 .It Belkin F7D1102 Surf Wireless Micro
96 .It D-Link DWA-131
97 .It Edimax EW-7811Un
98 .It Netgear WNA1000M
99 .It Realtek RTL8192CU
100 .It Realtek RTL8188CUS
101 .El
102 .Sh EXAMPLES
103 Join an existing BSS network (i.e., connect to an access point):
104 .Bd -literal -offset indent
105 ifconfig wlan create wlandev urtwn0 inet 192.168.0.20 \e
106     netmask 0xffffff00
107 .Ed
108 .Pp
109 Join a specific BSS network with network name
110 .Dq Li my_net :
111 .Pp
112 .Dl "ifconfig wlan create wlandev urtwn0 ssid my_net up"
113 .Pp
114 Join a specific BSS network with 64-bit WEP encryption:
115 .Bd -literal -offset indent
116 ifconfig wlan create wlandev urtwn0 ssid my_net \e
117         wepmode on wepkey 0x1234567890 weptxkey 1 up
118 .Ed
119 .Sh DIAGNOSTICS
120 .Bl -diag
121 .It "urtwn%d: error %d, could not read firmware %s"
122 For some reason, the driver was unable to read the microcode file from the
123 filesystem.
124 The file might be missing or corrupted.
125 .It "urtwn%d: device timeout"
126 A frame dispatched to the hardware for transmission did not complete in time.
127 The driver will reset the hardware.
128 This should not happen.
129 .El
130 .Sh SEE ALSO
131 .Xr ifmedia 4 ,
132 .Xr intro 4 ,
133 .Xr netintro 4 ,
134 .Xr usb 4 ,
135 .Xr wlan 4 ,
136 .Xr wlan_ccmp 4 ,
137 .Xr wlan_tkip 4 ,
138 .Xr wlan_wep 4 ,
139 .Xr ifconfig 8 ,
140 .Xr wpa_supplicant 8
141 .Rs
142 .%T Realtek
143 .%U http://www.realtek.com.tw
144 .Re
145 .Sh HISTORY
146 The
147 .Nm
148 driver first appeared in
149 .Ox 4.9
150 and
151 .Fx 10.0 .
152 .Sh AUTHORS
153 The
154 .Nm
155 driver was written by
156 .An Damien Bergamini Aq Mt damien@openbsd.org .
157 .Sh CAVEATS
158 The
159 .Nm
160 driver does not support any of the 802.11n capabilities offered by the
161 adapters.