Remove the old release infrastructure documentation inherited from
[dragonfly.git] / share / man / man4 / wi.4
1 .\" Copyright (c) 1997, 1998, 1999
2 .\"     Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by Bill Paul.
15 .\" 4. Neither the name of the author nor the names of any co-contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"   without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 .\" THE POSSIBILITY OF SUCH DAMAGE.
30 .\"
31 .\" $FreeBSD: src/share/man/man4/wi.4,v 1.9.4.12 2003/03/03 18:59:15 trhodes Exp $
32 .\" $DragonFly: src/share/man/man4/wi.4,v 1.2 2003/06/17 04:36:59 dillon Exp $
33 .\"     $OpenBSD: wi.4tbl,v 1.14 2002/04/29 19:53:50 jsyn Exp $
34 .\"
35 .Dd May 2, 2002
36 .Dt WI 4
37 .Os
38 .Sh NAME
39 .Nm wi
40 .Nd "WaveLAN/IEEE, PRISM-II and Spectrum24 802.11DS wireless network driver"
41 .Sh SYNOPSIS
42 .Cd "device wi"
43 .Sh DESCRIPTION
44 The
45 .Nm
46 driver provides support for wireless network adapters based around
47 the Lucent Hermes, Intersil PRISM-II, Intersil PRISM-2.5, and Symbol
48 Spectrum24 chipsets.
49 All four chipsets provide a similar interface to the driver.
50 .Pp
51 All host/device interaction is via programmed I/O.
52 Supported features include 802.11 and 802.3 frames, power management, BSS,
53 IBSS, WDS and old-style Lucent ad-hoc operation modes.
54 Cards based on the Intersil PRISM-II and PRISM-2.5 chips also support a
55 host-based access point mode which allows a card to act as a normal access
56 point (with some assistance from the
57 .Nm
58 driver).
59 The Lucent Hermes and Symbol Spectrum24 chipsets do not contain this
60 functionality.
61 PRISM-II and PRISM-2.5 chips do not support the WDS functionality.
62 .Pp
63 The
64 .Nm
65 driver encapsulates all IP and ARP traffic as 802.11 frames, however
66 it can receive either 802.11 or 802.3 frames.
67 Transmit speed is selectable between 1Mbps fixed, 2Mbps fixed, 2Mbps
68 with auto fallback, 5.5Mbps, 8Mbps, or 11Mbps depending on your hardware.
69 The Lucent WaveLAN/IEEE Silver and Gold cards as well as the Intersil
70 and Symbol cards have support for WEP encryption.
71 The WaveLAN Gold as well as newer Intersil and Symbol cards support
72 104bit keys, the others only accept 40bit keys.
73 The Lucent WaveLAN/IEEE Bronze cards do not support WEP at all.
74 To enable encryption, use the
75 .Xr wicontrol 8
76 utility to set your keys, or use
77 .Xr ifconfig 8
78 as shown below.
79 .Pp
80 By default, the
81 .Nm
82 driver configures the card for BSS operation (aka infrastructure
83 mode).
84 This mode requires the use of an access point (base station).
85 .Pp
86 The
87 .Nm
88 driver also supports a point-to-point mode where the ssid is
89 ignored and stations can communicate amongst themselves without the
90 aid of an access point.
91 Note that there are two possible point-to-point modes.
92 One mode, referred to as
93 .Dq "ad-hoc demo mode" ,
94 or
95 .Dq "legacy Lucent ad-hoc mode" ,
96 predates the IEEE 802.11 specification and so may not interoperate
97 with cards from different vendors.
98 The standardized point-to-point mode, is called IBSS (or confusingly
99 just ad-hoc mode), but is not supported by cards with very old
100 firmware revisions.
101 If your cards supports IBSS mode, it is recommended that you use it in
102 preference to the
103 .Dq "ad-hoc demo mode"
104 in new installations.
105 .Pp
106 Cards based on the Intersil PRISM-II and PRISM-2.5 chips also
107 have a host-based access point mode which allows the card to
108 act as an access point (base station).
109 Access points are different than operating in IBSS mode.
110 They operate in BSS mode.
111 They allow for easier roaming and bridge all ethernet traffic such
112 that machines connected via an access point appear to be on the local
113 ethernet segment.
114 .Pp
115 For more information on configuring this device, see
116 .Xr ifconfig 8 .
117 .Pp
118 Cards supported by the
119 .Nm
120 driver come in a variety of packages, though the most common
121 are of the PCMCIA type.
122 In many cases, the PCI version of a wireless card is simply
123 a PCMCIA card bundled with a PCI adapter.
124 The PCI adapters come in two flavors: true PCMCIA bridges and
125 dumb PCMCIA bridges.
126 A true PCMCIA bridge (such as those sold by Lucent) will attach
127 as a real PCMCIA controller.
128 The wireless card will then attach to the PCMCIA bus.
129 Wireless cards in PCMCIA slots may be inserted and ejected on the fly.
130 .Pp
131 A dumb bridge, on the other hand, does not show up as a true PCMCIA bus.
132 The wireless card will simply appear to the host as a normal PCI
133 device and will not require any PCMCIA support.
134 Cards in this type of adapter should only be removed when the
135 machine is powered down.
136 .Pp
137 The following cards are among those supported by the
138 .Nm
139 driver:
140 .Pp
141 .Bl -column -compact "Linksys Instant Wireless WPC11 2.5" "Spectrum24" "PCI or PCMCIA"
142 .Em "Card       Chip    Bus"
143 3Com AirConnect 3CRWE737A       Spectrum24      PCMCIA
144 3Com AirConnect 3CRWE777A       Prism-II        PCI
145 ACTIONTEC HWC01170      Prism-2.5       PCMCIA
146 Addtron AWP-100 Prism-II        PCMCIA
147 Adtec Adlink/340C       Prism-II        PCMCIA
148 Agere Orinoco   Hermes  PCMCIA
149 Avaya Wireless  Prism-II        PCMCIA
150 Blue Concentric Circle WL-379F  PRISM-II        CF
151 BreezeNet Wireless      Prism-II        PCMCIA
152 Buffalo WLI-PCM-S11     Prism-II        PCMCIA
153 Buffalo WLI-PCM-L11G    Hermes  PCMCIA
154 Buffalo WLI-CF-S11G     Prism-II        CF
155 Cabletron RoamAbout     Hermes  PCMCIA
156 Compaq Agency NC5004    Prism-II        PCMCIA
157 Compaq WL100    Prism-II        PCMCIA
158 Compaq WL110    Prism-II        PCMCIA
159 Compaq WL200    Prism-II        PCMCIA
160 Contec FLEXLAN/FX-DS110-PCC     Prism-II        PCMCIA
161 Corega PCC-11   Prism-II        PCMCIA
162 Corega PCCA-11  Prism-II        PCMCIA
163 Corega PCCB-11  Prism-II        PCMCIA
164 Corega CGWLPCIA11       Prism-II        PCI
165 Dell TrueMobile 1150    Hermes  PCMCIA
166 Dlink DWL520    Prism-2.5       PCI
167 Dlink DWL650    Prism-2.5       PCMCIA
168 ELSA XI300      Prism-II        PCMCIA
169 ELSA XI800      Prism-II        CF
170 EMTAC A2424i    Prism-II        PCMCIA
171 Ericsson Wireless LAN CARD C11  Spectrum24      PCMCIA
172 Farallon Skyline        Prism-II        PCMCIA
173 Gemtek WL-311   Prism-2.5       PCMCIA
174 Hawking Technology WE110P       Prism-2.5       PCMCIA
175 Home Wireless Networks  Prism-II        PCMCIA
176 IBM High Rate Wireless  Hermes  PCMCIA
177 ICOM SL-1100    Prism-II        PCMCIA
178 I-O DATA WN-B11/PCM     Prism-II        PCMCIA
179 Intel PRO/Wireless 2011 Spectrum24      PCMCIA
180 Intersil Prism II       Prism-II        PCMCIA
181 Intersil Mini-PCI       Prism-2.5       PCI
182 Linksys Instant Wireless WPC11  Prism-II        PCMCIA
183 Linksys Instant Wireless WPC11 2.5      Prism-2.5       PCMCIA
184 Linksys Instant Wireless WPC11 3.0      Prism-3 PCMCIA
185 Lucent WaveLAN  Hermes  PCMCIA
186 Melco Airconnect        Prism-II        PCMCIA
187 NANOSPEED ROOT-RZ2000   Prism-II        PCMCIA
188 NDC/Sohoware NCP130     Prism-II        PCI
189 NEC CMZ-RT-WP   Prism-II        PCMCIA
190 NEC PK-WL001    Prism-II        PCMCIA
191 NEC PC-WL/11C   PRISM-II        PCMCIA
192 Netgear MA401   Prism-II        PCMCIA
193 NTT-ME 11Mbps Wireless LAN      Prism-II        PCMCIA
194 Planex GeoWave/GW-NS110 Prism-II        PCMCIA
195 Planex GW-NS11H Prism-II        PCMCIA
196 Proxim Harmony  Prism-II        PCMCIA
197 Proxim RangeLAN-DS      Prism-II        PCMCIA
198 Samsung MagicLAN SWL-2000N      Prism-II        PCMCIA
199 SMC 2602 EZ Connect (3.3V)      Prism-II        PCI or PCMCIA
200 SMC 2632 EZ Connect     Prism-II        PCMCIA
201 Socket Low Power WLAN-CF        Prism-II        CF
202 Sony PCWA-C100  Lucent  PCMCIA
203 Symbol Spectrum24       Spectrum24      PCMCIA
204 Symbol LA-4100  Spectrum24      CF
205 TDK LAK-CD011WL Prism-II        PCMCIA
206 Toshiba Wireless LAN Card       Prism-II        PCMCIA
207 U.S. Robotics Wireless Card 2410        Prism-II        PCMCIA
208 .El
209 .Pp
210 Several vendors sell PCI adapters built around the PLX Technology 9050
211 or 9052 chip.
212 The following such adapters are supported or expected to work:
213 .Pp
214 .Bl -tag -compact
215 .It 3Com AirConnect 3CRWE777A (3.3V)
216 .It Belkin F5D6000 (a rebadged WL11000P)
217 .It Eumitcom WL11000P
218 .It Global Sun Technology GL24110P (untested)
219 .It Global Sun Technology GL24110P02
220 .It LinkSys WDT11 (a rebadged GL24110P02)
221 .It Netgear MA301
222 .It US Robotics 2415 (rebadged WL11000P)
223 .El
224 .Sh EXAMPLES
225 The following examples utilize
226 .Xr ifconfig 8
227 for simplicity, however,
228 .Xr wicontrol 8
229 can also be used to set wireless parameters.
230 .Pp
231 Join an existing BSS network (ie: connect to an access point):
232 .Pp
233 .Dl "ifconfig wi0 inet 192.168.0.20 netmask 0xffffff00"
234 .Pp
235 Join a specific BSS network with network name
236 .Dq Li my_net :
237 .Pp
238 .Dl "ifconfig wi0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net"
239 .Pp
240 Join a specific BSS network with WEP encryption:
241 .Bd -literal -offset indent
242 ifconfig wi0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
243         wepmode on wepkey 0x8736639624
244 .Ed
245 .Pp
246 Join a Lucent legacy demo ad-hoc network with network name
247 .Dq Li my_net :
248 .Bd -literal -offset indent
249 ifconfig wi0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
250         mediaopt adhoc
251 .Ed
252 .Pp
253 Create an IBSS network with network name
254 .Dq Li my_net :
255 .Bd -literal -offset indent
256 ifconfig wi0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
257         mediaopt ibss-master
258 .Ed
259 .Pp
260 .Em Note :
261 The infrastructure for
262 .Cm mediaopt ibss-master
263 has not been committed yet.
264 .Pp
265 Join an IBSS network with network name
266 .Dq Li my_net :
267 .Bd -literal -offset indent
268 ifconfig wi0 inet 192.168.0.22 netmask 0xffffff00 ssid my_net \e
269         mediaopt ibss
270 .Ed
271 .Pp
272 .Em Note :
273 The infrastructure for
274 .Cm mediaopt ibss
275 has not been committed yet.
276 .Pp
277 Create a host-based access point (Prism only):
278 .Bd -literal -offset indent
279 ifconfig wi0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
280         mediaopt hostap
281 .Ed
282 .Pp
283 Create a host-based access point with WEP enabled (Prism only):
284 .Bd -literal -offset indent
285 ifconfig wi0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
286         wepmode on wepkey 0x1234567890 mediaopt hostap
287 .Ed
288 .Pp
289 Create a host-based wireless bridge to fxp0 (Prism only):
290 .Bd -literal -offset indent
291 Add BRIDGE to the kernel config.
292 ifconfig wi0 inet up ssid my_ap mediaopt hostap
293 sysctl net.link.ether.bridge=1
294 sysctl net.link.ether.bridge_cfg="wi0 fxp0"
295 sysctl net.inet.ip.forwarding=1
296 .Ed
297 .Pp
298 This will give you approximately the same functionality as an access
299 point.
300 .Sh DIAGNOSTICS
301 .Bl -diag
302 .It "wi%d: init failed"
303 The WaveLAN card failed to come ready after an initialization command
304 was issued.
305 .It "wi%d: failed to allocate %d bytes on NIC"
306 The driver was unable to allocate memory for transmit frames in the
307 NIC's on-board RAM.
308 .It "wi%d: device timeout"
309 The WaveLAN failed to generate an interrupt to acknowledge a transmit
310 command.
311 .El
312 .Sh SEE ALSO
313 .Xr an 4 ,
314 .Xr arp 4 ,
315 .Xr netintro 4 ,
316 .Xr ifconfig 8 ,
317 .Xr wicontrol 8
318 .Rs
319 .%T HCF Light programming specification
320 .%O http://www.wavelan.com
321 .Re
322 .Sh HISTORY
323 The
324 .Nm
325 device driver first appeared in
326 .Fx 3.0 .
327 .Sh AUTHORS
328 The
329 .Nm
330 driver was written by
331 .An Bill Paul Aq wpaul@ctr.columbia.edu .
332 This man page comes from
333 .Ox .
334 .Sh CAVEATS
335 Different regulatory domains have different default channels for adhoc
336 mode.
337 See
338 .Xr ifconfig 8
339 for information on how to change the channel.
340 See
341 .Xr wicontrol 8
342 for information on different regulatory domains.
343 .Pp
344 The Intersil Prism family of chips' host-based access point mode has
345 bugs for station firmware versions prior to 0.8.3.
346 The driver currently precludes hostap functionality older station
347 firmware.
348 The best version of the station firmware for the Prism family of chips
349 seems to be 1.4.9.
350 Some users of Prism-II and 2.5 based cards report that station firmware
351 version 1.3.4 works better for them in hostap than 1.4.9.
352 Older versions of the Prism station firmware have a number of issues
353 with hostap mode.
354 The IBSS/adhoc mode appears to work well on station firmware 1.3.1 and
355 later.
356 The IBSS/adhoc mode appears to have problems for some people with
357 older versions of station firmware.
358 .Pp
359 Lucent cards prior to firmware version 6.0.4 do not support IBSS
360 mode.
361 These cards support only the pre 802.11 mode known as
362 .Dq "demo ad-hoc mode"
363 which does not interoperate with stations in IBSS mode.
364 .Pp
365 .Sh BUGS
366 Not all the new messages are documented here, and many of them are
367 indications of transient errors that are not indications of serious
368 problems.
369 .Pp
370 WL200 PCI wireless cards are based on a Cirrus Logic CL-PD6729 bridge
371 chips glued to an intersil prism-II pcmcia chipset w/o the PC Card
372 form factor being present.
373 These chips are special and require special care to use properly.
374 One must set
375 .Va hw.pcic.pd6729_intr_path Ns = Ns Qq Li 2
376 in
377 .Pa /boot/loader.conf .
378 This tells the pccard system to use PCI interrupts for this odd beast.
379 It is not possible to know automatically which kind of interrupts to use.
380 OLDCARD devices (pcic and card) support this device.