Initial import from FreeBSD RELENG_4:
[games.git] / share / man / man4 / man4.i386 / wl.4
1 .\"
2 .\" Copyright (c) 1997, Jim Binkley
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. All advertising materials mentioning features or use of this software
14 .\"    must display the following acknowledgement:
15 .\"     This product includes software developed by Jim Binkley
16 .\" 4. The name of the author may not be used to endorse or promote products
17 .\"    derived from this software without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\" $FreeBSD: src/share/man/man4/man4.i386/wl.4,v 1.10.2.5 2002/03/19 18:24:15 schweikh Exp $
32 .Dd July 7, 1997
33 .Dt WL 4 i386
34 .Os
35 .Sh NAME
36 .Nm wl
37 .Nd T1 speed ISA/radio lan card
38 .Sh SYNOPSIS
39 .Cd "device wl0 at isa? port 0x300 irq 5"
40 .Sh DESCRIPTION
41 The
42 .Nm
43 driver controls a radio lan card system made originally by
44 NCR, then ATT, now Lucent.  The system is spread-spectrum radio
45 at around 915 MHz (or 2.4 GHz).  With the supplied omni-directional antennae,
46 about 400 feet (indoors, more outdoors) can be covered in circumference.
47 This card can talk to the companion (wlp0) pccard.  Speeds vary
48 from 1 megabit to theoretically 2 megabits (roughly T1 in speed).
49 .Pp
50 The card has three fundamental hardware
51 units, a so-called PSA or programmable storage area, a radio modem,
52 and a ethernet lan controller.  The latter component is the
53 ancient (and not very honorable) Intel 82586 ethernet chip.
54 Fundamentally it appears to the operating system as an ethernet system,
55 and speaks IEEE MAC addresses.  The radio modem simply translates
56 ethernet packets to/from radio packets, that are either at 2.4 GHz
57 or 915 MHz depending on the radio modem.  It supports a collision
58 avoidance scheme.  The lan controller
59 supports promiscuous mode, broadcast, and multicasting
60 (although there is a glitch
61 in the latter).  "It thinks it is ethernet".
62 .Pp
63 How it is used
64 depends on the kind of antennae deployed with it.  Point to point
65 applications are possible as are ethernet-like lan use.  The vendor
66 ships an omni-directional antennae that works in the
67 vicinity of 400 feet (indoors).
68 Point to point antennae can be purchased that will go miles.
69 .Sh SETUP
70 The card can either be initialized with the vendor supplied DOS setup software.
71 Typically minimally an IRQ, port, and Network ID must be supplied.
72 Michael Smith's
73 .Xr wlconfig 8
74 utility can now be used to do this work from
75 the UNIX side.  The card is "not" plug and play.
76 The network id controls whether one set of cards can hear another.
77 If different, cards will read physical packets, but they will be discarded
78 by the radio modem.
79 .Sh CONTROL
80 In addition to the config utility, there are several sysctl
81 switches that can be used to modify runtime parameters.
82 The
83 .Xr sysctl 8
84 variables are as follows:
85 .Bl -diag
86 .It "machdep.wl_xmit_delay <useconds>"
87 This variable will cause the driver to insert a delay on transmit.
88 250 is the default.  The delay should probably be a bit longer
89 on faster cpus and less on slower cpus.  It exists because the 82586
90 was not designed to work with pentium-speed cpu systems and if overdriven
91 will have copious xmit side errors.
92 .It machdep.wl_ignore_nwid <0 | 1>
93 This switch defaults to 0; i.e., the nwid is not ignored.  It can
94 be set to 1 to cause the nwid to not be used.  This may be useful
95 when the device is in promiscuous mode as one can watch for all
96 packets and ignore nwid differences.
97 .It machdep.wl_xmit_watch <milliseconds>
98 This switch is not currently useful.
99 .It machdep.wl_gather_snr <milliseconds>
100 This switch is not currently useful.
101 .Pp
102 There is also a signal strength cache in the driver.  It may be interrogated
103 with
104 .Xr wlconfig 8 .
105 Incoming packets
106 are checked for certain hardware radio-modem values including signal
107 strength, silence, and quality, which range fro 0..63, 0..63, and 0..15
108 respectively.  Thus one can read out signal strenth values to see
109 how close/far peer nodes are.  The signal strength cache is indexed by
110 sender MAC address.
111 There are two sysctls that change how it filters packets.  Both are on
112 by default.
113 .It machdep.wl_wlcache_mcastonly <0 | 1>
114 By default this switch is on.
115 It forces the cache to filter out
116 unicast packets.  Only broadcast or multicast packets are accepted.
117 .It machdep.wl_wlcache_iponly <0 | 1>
118 By default this switch is on.  It forces the driver to discard non-IP
119 packets and also stores the IP src address.  ARP packets are ignored,
120 as are any other network protocol barring IPv4 packets.
121 .El
122 .Sh CAVEATS
123 The 82586 has numerous defects.  It may experience transmit-side
124 errors when modern faster cpus send packets at it faster than it can handle.
125 The driver (and probably the chip) does not support an all multicast mode.
126 As a result, it can be used with applications like
127 .Xr mrouted 8 ,
128 but it must go into promiscuous mode for that to work.  The driver
129 is slow to change modes from "normal" to promiscuous mode, presumably
130 due to delays in the configuration code.
131 .Sh SEE ALSO
132 .Xr sysctl 8 ,
133 .Xr wlconfig 8
134 .Pp
135 .Pa http://www.wavelan.com
136 .Sh HISTORY
137 The
138 .Nm
139 driver was written by
140 .An Anders Klemets
141 (thousands of years ago?) and
142 appears to be based on an even older Intel 82586 driver.  The 82586
143 controller was one of the first (if not the first?) integrated lan
144 controller on the block.  That does not mean it was the best either.
145 Anders ported and or created a driver for the ISA wavelan and PCCARD
146 wavelan system too (wlp).
147 .An Robert T. Morris, Jr.
148 ported the Mach drivers to BSDI.
149 .An Jim Binkley
150 ported them to
151 .Fx 2.1 .
152 .An Michael Smith
153 ported the wl driver only to 2.2.2.  Jim and Michael have been
154 maintaining them.  The current state of the driver is NOT ANYONE'S
155 FAULT.  Thanks to
156 .An Bernie Doehner
157 and
158 .An Robert Buaas
159 for contributions.
160 .Sh AUTHORS
161 Too numerous to mention.  See above.