1997-05-22 08:52:23 +00:00
|
|
|
.\"
|
1997-08-01 03:32:39 +00:00
|
|
|
.\" Copyright (c) 1997, Jim Binkley
|
1997-05-22 08:52:23 +00:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
1997-08-01 03:32:39 +00:00
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Jim Binkley
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
1997-05-22 08:52:23 +00:00
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
2006-09-29 15:45:11 +00:00
|
|
|
.Dd September 29, 2006
|
1997-08-01 03:32:39 +00:00
|
|
|
.Dt WL 4 i386
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1997-05-22 08:52:23 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm wl
|
1997-08-01 03:32:39 +00:00
|
|
|
.Nd T1 speed ISA/radio lan card
|
1997-05-22 08:52:23 +00:00
|
|
|
.Sh SYNOPSIS
|
1999-05-20 09:56:18 +00:00
|
|
|
.Cd "device wl0 at isa? port 0x300 irq 5"
|
1997-05-22 08:52:23 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1997-08-01 03:32:39 +00:00
|
|
|
driver controls a radio lan card system made originally by
|
2004-07-03 18:29:24 +00:00
|
|
|
NCR, then ATT, now Lucent.
|
|
|
|
The system is spread-spectrum radio
|
|
|
|
at around 915 MHz (or 2.4 GHz).
|
|
|
|
With the supplied omni-directional antennae,
|
1997-08-01 03:32:39 +00:00
|
|
|
about 400 feet (indoors, more outdoors) can be covered in circumference.
|
2004-07-03 18:29:24 +00:00
|
|
|
This card can talk to the companion (wlp0) pccard.
|
|
|
|
Speeds vary
|
1997-08-01 03:32:39 +00:00
|
|
|
from 1 megabit to theoretically 2 megabits (roughly T1 in speed).
|
1997-05-22 08:52:23 +00:00
|
|
|
.Pp
|
2001-07-14 19:41:16 +00:00
|
|
|
The card has three fundamental hardware
|
1997-08-01 03:32:39 +00:00
|
|
|
units, a so-called PSA or programmable storage area, a radio modem,
|
2004-12-21 01:09:34 +00:00
|
|
|
and a Ethernet lan controller.
|
2004-07-03 18:29:24 +00:00
|
|
|
The latter component is the
|
2004-12-21 01:09:34 +00:00
|
|
|
ancient (and not very honorable) Intel 82586 Ethernet chip.
|
|
|
|
Fundamentally it appears to the operating system as an Ethernet system,
|
2004-07-03 18:29:24 +00:00
|
|
|
and speaks IEEE MAC addresses.
|
|
|
|
The radio modem simply translates
|
2004-12-21 01:09:34 +00:00
|
|
|
Ethernet packets to/from radio packets, that are either at 2.4 GHz
|
2004-07-03 18:29:24 +00:00
|
|
|
or 915 MHz depending on the radio modem.
|
|
|
|
It supports a collision
|
|
|
|
avoidance scheme.
|
|
|
|
The lan controller
|
2001-07-14 19:41:16 +00:00
|
|
|
supports promiscuous mode, broadcast, and multicasting
|
1997-08-01 03:32:39 +00:00
|
|
|
(although there is a glitch
|
2004-07-03 18:29:24 +00:00
|
|
|
in the latter).
|
2004-12-21 01:09:34 +00:00
|
|
|
"It thinks it is Ethernet".
|
2001-07-14 19:41:16 +00:00
|
|
|
.Pp
|
1997-08-01 03:32:39 +00:00
|
|
|
How it is used
|
2004-07-03 18:29:24 +00:00
|
|
|
depends on the kind of antennae deployed with it.
|
|
|
|
Point to point
|
2004-12-21 01:09:34 +00:00
|
|
|
applications are possible as are Ethernet-like lan use.
|
2004-07-03 18:29:24 +00:00
|
|
|
The vendor
|
2001-07-14 19:41:16 +00:00
|
|
|
ships an omni-directional antennae that works in the
|
1997-08-01 03:32:39 +00:00
|
|
|
vicinity of 400 feet (indoors).
|
|
|
|
Point to point antennae can be purchased that will go miles.
|
|
|
|
.Sh SETUP
|
|
|
|
The card can either be initialized with the vendor supplied DOS setup software.
|
|
|
|
Typically minimally an IRQ, port, and Network ID must be supplied.
|
2001-07-14 19:41:16 +00:00
|
|
|
Michael Smith's
|
2000-05-31 21:33:15 +00:00
|
|
|
.Xr wlconfig 8
|
1997-08-01 03:32:39 +00:00
|
|
|
utility can now be used to do this work from
|
2004-07-03 18:29:24 +00:00
|
|
|
the UNIX side.
|
|
|
|
The card is "not" plug and play.
|
1997-08-01 03:32:39 +00:00
|
|
|
The network id controls whether one set of cards can hear another.
|
|
|
|
If different, cards will read physical packets, but they will be discarded
|
|
|
|
by the radio modem.
|
|
|
|
.Sh CONTROL
|
|
|
|
In addition to the config utility, there are several sysctl
|
|
|
|
switches that can be used to modify runtime parameters.
|
2001-07-14 19:41:16 +00:00
|
|
|
The
|
2000-05-31 21:33:15 +00:00
|
|
|
.Xr sysctl 8
|
1997-08-01 03:32:39 +00:00
|
|
|
variables are as follows:
|
1997-05-22 08:52:23 +00:00
|
|
|
.Bl -diag
|
1997-08-01 03:32:39 +00:00
|
|
|
.It "machdep.wl_xmit_delay <useconds>"
|
|
|
|
This variable will cause the driver to insert a delay on transmit.
|
2004-07-03 18:29:24 +00:00
|
|
|
250 is the default.
|
|
|
|
The delay should probably be a bit longer
|
|
|
|
on faster cpus and less on slower cpus.
|
|
|
|
It exists because the 82586
|
2002-01-21 12:36:12 +00:00
|
|
|
was not designed to work with Pentium-speed cpu systems and if overdriven
|
1997-08-01 03:32:39 +00:00
|
|
|
will have copious xmit side errors.
|
|
|
|
.It machdep.wl_ignore_nwid <0 | 1>
|
2004-07-03 18:29:24 +00:00
|
|
|
This switch defaults to 0; i.e., the nwid is not ignored.
|
|
|
|
It can
|
|
|
|
be set to 1 to cause the nwid to not be used.
|
|
|
|
This may be useful
|
1997-08-01 03:32:39 +00:00
|
|
|
when the device is in promiscuous mode as one can watch for all
|
|
|
|
packets and ignore nwid differences.
|
2001-07-14 19:41:16 +00:00
|
|
|
.It machdep.wl_xmit_watch <milliseconds>
|
1997-08-01 03:32:39 +00:00
|
|
|
This switch is not currently useful.
|
2001-07-14 19:41:16 +00:00
|
|
|
.It machdep.wl_gather_snr <milliseconds>
|
1997-08-01 03:32:39 +00:00
|
|
|
This switch is not currently useful.
|
|
|
|
.Pp
|
2004-07-03 18:29:24 +00:00
|
|
|
There is also a signal strength cache in the driver.
|
|
|
|
It may be interrogated
|
1997-08-01 03:32:39 +00:00
|
|
|
with
|
2000-05-31 21:33:15 +00:00
|
|
|
.Xr wlconfig 8 .
|
1997-08-01 03:32:39 +00:00
|
|
|
Incoming packets
|
|
|
|
are checked for certain hardware radio-modem values including signal
|
|
|
|
strength, silence, and quality, which range fro 0..63, 0..63, and 0..15
|
2004-07-03 18:29:24 +00:00
|
|
|
respectively.
|
|
|
|
Thus one can read out signal strenth values to see
|
|
|
|
how close/far peer nodes are.
|
|
|
|
The signal strength cache is indexed by
|
1997-08-01 03:32:39 +00:00
|
|
|
sender MAC address.
|
2004-07-03 18:29:24 +00:00
|
|
|
There are two sysctls that change how it filters packets.
|
|
|
|
Both are on
|
1997-08-01 03:32:39 +00:00
|
|
|
by default.
|
2001-07-14 19:41:16 +00:00
|
|
|
.It machdep.wl_wlcache_mcastonly <0 | 1>
|
2000-03-03 14:05:08 +00:00
|
|
|
By default this switch is on.
|
|
|
|
It forces the cache to filter out
|
2004-07-03 18:29:24 +00:00
|
|
|
unicast packets.
|
|
|
|
Only broadcast or multicast packets are accepted.
|
1997-08-01 03:32:39 +00:00
|
|
|
.It machdep.wl_wlcache_iponly <0 | 1>
|
2004-07-03 18:29:24 +00:00
|
|
|
By default this switch is on.
|
|
|
|
It forces the driver to discard non-IP
|
|
|
|
packets and also stores the IP src address.
|
|
|
|
ARP packets are ignored,
|
1997-08-01 03:32:39 +00:00
|
|
|
as are any other network protocol barring IPv4 packets.
|
1997-05-22 08:52:23 +00:00
|
|
|
.El
|
|
|
|
.Sh CAVEATS
|
2004-07-03 18:29:24 +00:00
|
|
|
The 82586 has numerous defects.
|
|
|
|
It may experience transmit-side
|
1997-08-01 03:32:39 +00:00
|
|
|
errors when modern faster cpus send packets at it faster than it can handle.
|
|
|
|
The driver (and probably the chip) does not support an all multicast mode.
|
2006-09-29 16:16:41 +00:00
|
|
|
As a result, it can be used with applications like
|
|
|
|
.Xr mrouted 8 Pq Pa ports/net/mrouted ,
|
2004-07-03 18:29:24 +00:00
|
|
|
but it must go into promiscuous mode for that to work.
|
|
|
|
The driver
|
1997-08-01 03:32:39 +00:00
|
|
|
is slow to change modes from "normal" to promiscuous mode, presumably
|
|
|
|
due to delays in the configuration code.
|
1997-05-22 08:52:23 +00:00
|
|
|
.Sh SEE ALSO
|
1997-08-01 03:32:39 +00:00
|
|
|
.Xr sysctl 8 ,
|
2001-07-06 16:46:48 +00:00
|
|
|
.Xr wlconfig 8
|
|
|
|
.Pp
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pa http://www.wavelan.com
|
1997-05-22 08:52:23 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1998-03-12 07:31:21 +00:00
|
|
|
driver was written by
|
|
|
|
.An Anders Klemets
|
|
|
|
(thousands of years ago?) and
|
2004-07-03 18:29:24 +00:00
|
|
|
appears to be based on an even older Intel 82586 driver.
|
|
|
|
The 82586
|
1997-08-01 03:32:39 +00:00
|
|
|
controller was one of the first (if not the first?) integrated lan
|
2004-07-03 18:29:24 +00:00
|
|
|
controller on the block.
|
|
|
|
That does not mean it was the best either.
|
1997-08-01 03:32:39 +00:00
|
|
|
Anders ported and or created a driver for the ISA wavelan and PCCARD
|
1998-03-12 07:31:21 +00:00
|
|
|
wavelan system too (wlp).
|
|
|
|
.An Robert T. Morris, Jr.
|
|
|
|
ported the Mach drivers to BSDI.
|
|
|
|
.An Jim Binkley
|
|
|
|
ported them to
|
|
|
|
.Fx 2.1 .
|
|
|
|
.An Michael Smith
|
2004-07-03 18:29:24 +00:00
|
|
|
ported the wl driver only to 2.2.2.
|
|
|
|
Jim and Michael have been
|
|
|
|
maintaining them.
|
|
|
|
The current state of the driver is NOT ANYONE'S
|
|
|
|
FAULT.
|
|
|
|
Thanks to
|
1998-03-12 07:31:21 +00:00
|
|
|
.An Bernie Doehner
|
|
|
|
and
|
|
|
|
.An Robert Buaas
|
|
|
|
for contributions.
|
|
|
|
.Sh AUTHORS
|
2004-07-03 18:29:24 +00:00
|
|
|
Too numerous to mention.
|
|
|
|
See above.
|