xref: /netbsd-src/share/man/man4/urtwn.4 (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1.\" $NetBSD: urtwn.4,v 1.18 2021/06/02 22:32:29 wiz Exp $
2.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe 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 December 17, 2018
19.Dt URTWN 4
20.Os
21.Sh NAME
22.Nm urtwn
23.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU/RTL8192EU USB IEEE 802.11b/g/n wireless network 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
30RTL8188CUS, RTL8188CE-VAU, RTL8188EUS, RTL8188RU, RTL8192CU and RTL8192EU
31chipsets.
32.Pp
33The RTL8188CUS and RTL8188EUS are highly integrated 802.11n adapters that
34combine 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 RTL8188CUS.
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.
43It operates 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 IBSS mode
56Also known as
57.Em IEEE ad-hoc
58mode or
59.Em peer-to-peer
60mode.
61This is the standardized method of operating without an access point.
62Stations associate with a service set.
63However, actual connections between stations are peer-to-peer.
64.It Host AP
65In this mode the driver acts as an access point (base station)
66for other cards.
67.It monitor mode
68In this mode the driver is able to receive packets without
69associating with an access point.
70This disables the internal receive filter and enables the card to
71capture packets from networks which it wouldn't normally have access to,
72or to scan for access points.
73.El
74.Pp
75The
76.Nm
77driver can be configured to use
78Wired Equivalent Privacy (WEP) or
79Wi-Fi Protected Access (WPA-PSK and WPA2-PSK).
80WPA is the de facto encryption standard for wireless networks.
81It is strongly recommended that WEP
82not be used as the sole mechanism
83to secure wireless communication,
84due to serious weaknesses in it.
85.Pp
86The
87.Nm
88driver can be configured at runtime with
89.Xr ifconfig 8
90or on boot with
91.Xr ifconfig.if 5 .
92.Sh FILES
93The driver needs the following firmware files,
94which are loaded when an interface is attached:
95.Pp
96.Bl -tag -width Ds -offset indent -compact
97.It /libdata/firmware/if_urtwn/rtl8188eufw.bin
98.It /libdata/firmware/if_urtwn/rtl8192cfw.bin
99.It /libdata/firmware/if_urtwn/rtl8192cfwU.bin
100.It /libdata/firmware/if_urtwn/rtl8192efw.bin
101.El
102.Sh HARDWARE
103The following adapters should work:
104.Pp
105.Bl -tag -width Ds -offset indent -compact
106.It Airlink101 AWLL5088
107.It Aus. Linx AL-9604R1S
108.It ASUSTeK USB-N10 NANO
109.\".It ASUSTek USB-N13 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-131
114.It D-Link DWA-133
115.It D-Link DWA-135
116.It Digitus DN-7042
117.It Edimax EW-7811Un
118.It EDUP EP-N8508
119.It ELECOM WDC-150SU2M
120.It Full River FR-W100NUL
121.It Hercules Wireless N USB Pico HWNUp-150
122.It IO-DATA WN-G150UMW
123.It Netgear WNA1000A
124.It Planex GW-USEco300
125.It Planex GW-USNano2
126.It Planex GW-USValue-EZ
127.It Planex GW-USWExtreme
128.It POWCHIP POW-N18
129.It Sitecom N300 USB (WLA-2102 v1)
130.It Sitecom WL-365
131.It Solwise NET-WL-UMD-606N
132.It TP-LINK TL-WN723N v3
133.It TP-LINK TL-WN725N v2
134.It TRENDnet TEW-648UBM
135.El
136.Sh EXAMPLES
137The following
138.Xr ifconfig.if 5
139example configures urtwn0 to join whatever network is available on boot,
140using WEP key
141.Dq 0x1deadbeef1 ,
142channel 11, obtaining an IP address using DHCP:
143.Bd -literal -offset indent
144nwkey 0x1deadbeef1 chan 11
145dhcp
146.Ed
147.Pp
148Join an existing BSS network,
149.Dq my_net :
150.Bd -literal -offset indent
151# ifconfig urtwn0 192.168.1.1 netmask 0xffffff00 nwid my_net
152.Ed
153.Sh DIAGNOSTICS
154.Bl -diag
155.It "urtwn%d: error %d, could not read firmware %s"
156For some reason, the driver was unable to read the microcode file from the
157filesystem.
158The file might be missing or corrupted.
159.It "urtwn%d: device timeout"
160A frame dispatched to the hardware for transmission did not complete in time.
161The driver will reset the hardware.
162This should not happen.
163.El
164.Sh SEE ALSO
165.Xr arp 4 ,
166.Xr netintro 4 ,
167.Xr usb 4 ,
168.Xr ifconfig.if 5 ,
169.Xr wpa_supplicant.conf 5 ,
170.Xr ifconfig 8 ,
171.Xr wpa_supplicant 8
172.Sh HISTORY
173The
174.Nm
175device driver first appeared in
176.Ox 4.9
177and in
178.Nx 6.0 .
179.Sh AUTHORS
180.An -nosplit
181The
182.Nm
183driver was written by
184.An Damien Bergamini
185.Aq damien@openbsd.org
186for
187.Ox
188and ported to
189.Nx
190by
191.An NONAKA Kimihiro
192.Aq nonaka@NetBSD.org .
193.Sh CAVEATS
194The
195.Nm
196driver does not support any of the 802.11n capabilities offered by the
197adapters.
198Additional work is required in
199.Xr ieee80211 9
200before those features can be supported.
201