xref: /openbsd/share/man/man4/rtw.4 (revision 09467b48)
1.\"	$OpenBSD: rtw.4,v 1.45 2019/03/29 07:07:05 jmc Exp $
2.\"
3.\" Copyright (c) 2004 Jonathan Gray <jsg@openbsd.org>
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: March 29 2019 $
18.Dt RTW 4
19.Os
20.Sh NAME
21.Nm rtw
22.Nd Realtek RTL8180L IEEE 802.11b wireless network device
23.Sh SYNOPSIS
24.Cd "rtw* at cardbus?"
25.Cd "rtw* at pci?"
26.Sh DESCRIPTION
27The
28.Nm
29driver supports PCI/CardBus 802.11b wireless adapters based on the
30Realtek RTL8180L.
31.Pp
32A variety of radio transceivers can be found in these devices, including
33the Philips SA2400A, Maxim MAX2820, and GCT GRF5101.
34.Pp
35These are the modes the
36.Nm
37driver can operate in:
38.Bl -tag -width "IBSS-masterXX"
39.It BSS mode
40Also known as
41.Em infrastructure
42mode, this is used when associating with an access point, through
43which all traffic passes.
44This mode is the default.
45.It IBSS mode
46Also known as
47.Em IEEE ad-hoc
48mode or
49.Em peer-to-peer
50mode.
51This is the standardized method of operating without an access point.
52Stations associate with a service set.
53However, actual connections between stations are peer-to-peer.
54.It Host AP
55In this mode the driver acts as an access point (base station)
56for other cards.
57.It monitor mode
58In this mode the driver is able to receive packets without
59associating with an access point.
60This disables the internal receive filter and enables the card to
61capture packets from networks which it wouldn't normally have access to,
62or to scan for access points.
63.El
64.Pp
65The
66.Nm
67driver can be configured to use software
68Wired Equivalent Privacy (WEP).
69It is strongly recommended that WEP
70not be used as the sole mechanism
71to secure wireless communication,
72due to serious weaknesses in it.
73.Pp
74In BSS mode,
75the driver supports powersave mode,
76which can be enabled via
77.Xr ifconfig 8 .
78.Pp
79The
80.Nm
81driver can be configured at runtime with
82.Xr ifconfig 8
83or on boot with
84.Xr hostname.if 5 .
85.Sh HARDWARE
86The following adapters should work:
87.Bl -column "GigaFast WF721-AEX (R* serial)" "GRF5101" "Cardbus" -offset 6n
88.It Em Card Ta Em Radio Ta Em Bus
89.\".It Li "Acer Aspire 1357 LMi" Ta SA2400 Ta Mini PCI
90.It Li "Allnet ALL0182" Ta SA2400 Ta CardBus
91.\".It Li "Belkin F5D6001 V3" Ta SA2400 Ta PCI
92.It Li "Belkin F5D6020 V3" Ta SA2400 Ta CardBus
93.It Li "Buffalo WLI-CB-B11" Ta SA2400 Ta CardBus
94.It Li "Corega CG-WLCB11V3" Ta SA2400 Ta CardBus
95.\".It Li "D-Link DWL-510" Ta SA2400 Ta PCI
96.\".It Li "D-Link DWL-520 rev D" Ta ? Ta PCI
97.It Li "D-Link DWL-610" Ta ? Ta CardBus
98.\".It Li "Encore ENLWI-PCI1-NT" Ta SA2400 Ta PCI
99.It Li "Edimax EW-7106" Ta SA2400 Ta CardBus
100.\".It Li "Edimax EW-7126" Ta GRF5101 Ta PCI
101.\".It Li "Gigabyte GN-WLMR101" Ta SA2400 Ta PCI
102.It Li "GigaFast WF721-AEX (R* serial)" Ta "GRF5101" Ta CardBus
103.\".It Li "HomeLine HLW-PCC200" Ta "GRF5101" Ta CardBus
104.It Li "Jensen AirLink 6011" Ta GRF5101 Ta CardBus
105.It Li "Level-One WPC-0101" Ta SA2400 Ta CardBus
106.It Li "Linksys WPC11 v4" Ta MAX2820 Ta CardBus
107.\".It Li "Longshine LCS-8031-R" Ta GRF5101 Ta PCI
108.\".It Li "Mentor WLPCI04330073" Ta SA2400 Ta CardBus
109.\".It Li "Micronet SP906BB" Ta ? Ta PCI
110.It Li "Netgear MA521" Ta SA2400 Ta CardBus
111.It Li "Ovislink AirLive WL-1120PCM" Ta SA2400 Ta CardBus
112.\".It Li "Pheenet WL-11PCIR" Ta SA2400 Ta PCI
113.It Li "Planet WL-3553" Ta SA2400 Ta CardBus
114.It Li "Q-Tec 770WC" Ta SA2400 Ta CardBus
115.It Li "Q-Tec 775WC" Ta SA2400 Ta CardBus
116.\".It "Repotec RP-WP7126" Ta GRF5101 Ta PCI
117.It Li "Roper FreeLan 802.11b" Ta SA2400 Ta CardBus
118.It Li "SAFECOM SWLCR-1100" Ta SA2400 Ta CardBus
119.\".It Li "Surecom EP-9428" Ta ? Ta CardBus
120.\".It Li "Sweex LC700010" Ta GRF5101 Ta PCI
121.\".It "Tonze PC-2100T" Ta GRF5101 Ta PCI
122.\".It Li "Topcom Skyr@cer 4011b" Ta ? Ta CardBus
123.\".It "TP-Link TL-WN250/251" Ta GRF5101 Ta PCI
124.It Li "TRENDnet TEW-226PC" Ta ? Ta CardBus
125.\".It Li "TRENDnet TEW-288PI" Ta SA2400 Ta PCI
126.It Li "VCTnet PC-11B1" Ta SA2400 Ta CardBus
127.It Li "Winstron CB-200B" Ta SA2400 Ta CardBus
128.It Li "Zonet ZEW1000" Ta GRF5101 Ta CardBus
129.El
130.Sh EXAMPLES
131The following example scans for available networks:
132.Pp
133.Dl # ifconfig rtw0 scan
134.Pp
135The following
136.Xr hostname.if 5
137example configures rtw0 to join network
138.Dq mynwid ,
139using WEP key
140.Dq mywepkey ,
141obtaining an IP address using DHCP:
142.Bd -literal -offset indent
143nwid mynwid nwkey mywepkey
144dhcp
145.Ed
146.Pp
147The following
148.Xr hostname.if 5
149example creates a host-based access point on boot:
150.Bd -literal -offset indent
151mediaopt hostap
152nwid mynwid nwkey mywepkey
153inet 192.168.1.1 255.255.255.0
154.Ed
155.Sh SEE ALSO
156.Xr arp 4 ,
157.Xr cardbus 4 ,
158.Xr ifmedia 4 ,
159.Xr intro 4 ,
160.Xr netintro 4 ,
161.Xr pci 4 ,
162.Xr hostname.if 5 ,
163.Xr hostapd 8 ,
164.Xr ifconfig 8
165.Rs
166.%T Realtek
167.%U http://www.realtek.com.tw
168.Re
169.Sh HISTORY
170The
171.Nm
172device driver first appeared in
173.Ox 3.7 .
174.Sh AUTHORS
175.An -nosplit
176The
177.Nm
178driver was written by
179.An David Young Aq Mt dyoung@NetBSD.org
180and ported to
181.Ox
182by
183.An Jonathan Gray Aq Mt jsg@openbsd.org .
184.Sh CAVEATS
185GCT refuse to release any documentation on their GRF5101 RF transceiver.
186.Pp
187While PCI devices will attach most of them are not able to transmit.
188.Pp
189Host AP mode doesn't support power saving.
190Clients attempting to use power saving mode may experience significant
191packet loss (disabling power saving on the client will fix this).
192