xref: /openbsd/share/man/man4/urtwn.4 (revision 771fbea0)
1.\" $OpenBSD: urtwn.4,v 1.50 2021/04/25 15:59:56 stsp Exp $
2.\"
3.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: April 25 2021 $
18.Dt URTWN 4
19.Os
20.Sh NAME
21.Nm urtwn
22.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU/RTL8192EU USB IEEE 802.11b/g/n wireless
23network device
24.Sh SYNOPSIS
25.Cd "urtwn* at uhub? port ?"
26.Sh DESCRIPTION
27The
28.Nm
29driver supports USB 2.0 wireless network devices based on Realtek
30RTL8188CU, RTL8188CE-VAU, RTL8188EU, RTL8188RU, RTL8192CU and RTL8192EU
31chipsets.
32.Pp
33The RTL8188CU and RTL8188EU are highly integrated 802.11n adapters
34that combine a MAC, a 1T1R capable baseband and an RF in a single chip.
35They operate in the 2GHz spectrum only.
36The RTL8188RU is a high-power variant of the RTL8188CU.
37The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches
38to the USB interface.
39.Pp
40The RTL8192CU and RTL8192EU are highly integrated multiple-in, multiple-out
41(MIMO) 802.11n adapters that combine a MAC, a 2T2R capable baseband and an
42RF in a single chip.
43They operate in the 2GHz spectrum only.
44.Pp
45These are the modes the
46.Nm
47driver can operate in:
48.Bl -tag -width "IBSS-masterXX"
49.It BSS mode
50Also known as
51.Em infrastructure
52mode, this is used when associating with an access point, through
53which all traffic passes.
54This mode is the default.
55.It monitor mode
56In this mode the driver is able to receive packets without
57associating with an access point.
58This disables the internal receive filter and enables the card to
59capture packets from networks which it wouldn't normally have access to,
60or to scan for access points.
61.El
62.Pp
63The
64.Nm
65driver can be configured to use
66Wired Equivalent Privacy (WEP) or
67Wi-Fi Protected Access (WPA1 and WPA2).
68WPA2 is the current encryption standard for wireless networks.
69It is strongly recommended that neither WEP nor WPA1
70are used as the sole mechanism to secure wireless communication,
71due to serious weaknesses.
72WPA1 is disabled by default and may be enabled using the option
73.Qq Cm wpaprotos Ar wpa1,wpa2 .
74For standard WPA networks which use pre-shared keys (PSK),
75keys are configured using the
76.Qq Cm wpakey
77option.
78WPA-Enterprise networks require use of the wpa_supplicant package.
79.Pp
80The
81.Nm
82driver can be configured at runtime with
83.Xr ifconfig 8
84or on boot with
85.Xr hostname.if 5 .
86.Sh FILES
87The driver needs at least version 1.1p0 of the following firmware files,
88which are loaded when an interface is attached:
89.Pp
90.Bl -tag -width Ds -offset indent -compact
91.It Pa /etc/firmware/urtwn-rtl8192cfwT
92.It Pa /etc/firmware/urtwn-rtl8192cfwU
93.It Pa /etc/firmware/urtwn-rtl8192eu_nic
94.It Pa /etc/firmware/urtwn-rtl8723fw
95.It Pa /etc/firmware/urtwn-rtl8188eufw
96.El
97.Pp
98A prepackaged version of the firmware can be installed using
99.Xr fw_update 1 .
100.Sh HARDWARE
101The following adapters should work:
102.Pp
103.Bl -tag -width Ds -offset indent -compact
104.It Airlink101 AWLL5088
105.It Alfa AWUS036NHR
106.It Approx APPUSB300NANO V1
107.It Aus. Linx AL-9604R1S
108.It Asus USB-N10 NANO
109.It Asus USB-N10 NANO B1
110.It B-Link BL-LW05-5R
111.It Belkin F7D1102 Surf Wireless Micro
112.It D-Link DWA-121
113.It D-Link DWA-123 rev \&D1
114.It D-Link DWA-125 rev \&D1
115.It D-Link DWA-131 rev B, E1
116.It D-Link DWA-133
117.It D-Link DWA-135
118.It Digitus DN-7042
119.It Edimax EW-7811Un
120.It Edimax EW-7811Un v2
121.It EDUP EP-N8508
122.It Elecom WDC-150SU2M
123.It Full River FR-W100NUL
124.It Hercules Wireless N USB Pico HWNUp-150
125.It IO-DATA WN-G150UM
126.It ISY IWL4000 USB Wireless Micro Adapter
127.It Netgear WNA1000A
128.It Netgear WNA1000M
129.It Netgear WNA1000Mv2
130.It On Networks N300MA
131.It Patriot PCUSBW1150
132.It Planex GW-USEco300
133.It Planex GW-USNano2
134.It Planex GW-USValue-EZ
135.It Planex GW-USWExtreme
136.It POWCHIP POW-N18
137.It Prolink WN2201
138.It Sitecom WL-365
139.It Sitecom WLA-2100 v2
140.It Solwise NET-WL-UMD-606N
141.It TP-LINK TL-WN722N v2
142.It TP-LINK TL-WN723N v3
143.It TP-LINK TL-WN725N v2
144.It TP-LINK TL-WN821N v4
145.It TP-LINK TL-WN821N v5
146.It TP-LINK TL-WN822N v4
147.It TP-LINK TL-WN822N v5
148.It TRENDnet TEW-648UBM
149.El
150.Sh EXAMPLES
151The following example scans for available networks:
152.Pp
153.Dl # ifconfig urtwn0 scan
154.Pp
155The following
156.Xr hostname.if 5
157example configures urtwn0 to join network
158.Dq mynwid ,
159using WPA key
160.Dq mywpakey ,
161obtaining an IP address using DHCP:
162.Bd -literal -offset indent
163nwid mynwid wpakey mywpakey
164dhcp
165.Ed
166.Sh DIAGNOSTICS
167.Bl -diag
168.It "urtwn0: error N, could not read firmware ..."
169For some reason, the driver was unable to read the microcode file from the
170filesystem.
171The file might be missing or corrupted.
172.It "urtwn0: device timeout"
173A frame dispatched to the hardware for transmission did not complete in time.
174The driver will reset the hardware.
175This should not happen.
176.El
177.Sh SEE ALSO
178.Xr arp 4 ,
179.Xr ifmedia 4 ,
180.Xr intro 4 ,
181.Xr netintro 4 ,
182.Xr usb 4 ,
183.Xr hostname.if 5 ,
184.Xr ifconfig 8
185.Sh HISTORY
186The
187.Nm
188driver first appeared in
189.Ox 4.9 .
190.Sh AUTHORS
191The
192.Nm
193driver was written by
194.An Damien Bergamini Aq Mt damien.bergamini@free.fr .
195.Sh CAVEATS
196The
197.Nm
198driver does not support any of the 802.11n capabilities offered by the
199adapters.
200Additional work is required in
201.Xr ieee80211 9
202before those features can be supported.
203.Pp
204This driver does not support powersave mode.
205