1999-08-28 23:23:38 +00:00
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2000-12-11 15:57:16 +00:00
|
|
|
.Dd December 26, 1996
|
1997-05-22 08:58:18 +00:00
|
|
|
.Os
|
|
|
|
.Dt WLCONFIG 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wlconfig
|
|
|
|
.Nd read/write wavelan config parameters
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1997-05-22 08:58:18 +00:00
|
|
|
.Ar ifname
|
|
|
|
.Op Ar param value ...
|
|
|
|
.Sh DESCRIPTION
|
2001-07-15 08:06:20 +00:00
|
|
|
The
|
1997-10-27 12:23:08 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
command can be used to read and set parameters for the NCR/AT&T Wavelan
|
2001-05-31 11:51:20 +00:00
|
|
|
radio LAN card. Various parameters stored in the non-volatile Parameter
|
|
|
|
Storage Area (PSA) on the card can be modified with this program, replacing
|
|
|
|
the DOS-based
|
1997-05-22 08:58:18 +00:00
|
|
|
.Nm instconf.exe
|
1997-08-01 03:50:23 +00:00
|
|
|
program. It can also be used to interrogate the optional signal
|
|
|
|
strength cache which may have been compiled into the driver.
|
1997-05-22 08:58:18 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar ifname
|
2001-07-15 08:06:20 +00:00
|
|
|
parameter specifies the wavelan interface name (eg.
|
2001-08-10 17:35:21 +00:00
|
|
|
.Pa wl0 ) .
|
|
|
|
If no other arguments are supplied, the current contents of the PSA
|
1997-05-22 08:58:18 +00:00
|
|
|
are interpreted and displayed.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar param
|
2001-07-15 08:06:20 +00:00
|
|
|
and
|
1997-05-22 08:58:18 +00:00
|
|
|
.Ar value
|
1997-08-01 03:50:23 +00:00
|
|
|
arguments can be used to change the value of several parameters.
|
2001-07-15 08:06:20 +00:00
|
|
|
Any number of
|
1997-05-22 08:58:18 +00:00
|
|
|
.Ar param value
|
|
|
|
pairs may be supplied.
|
2000-12-27 15:30:30 +00:00
|
|
|
.Bl -tag -width 15n -offset indent
|
1997-05-22 08:58:18 +00:00
|
|
|
.It Va param
|
|
|
|
.Va value
|
|
|
|
.It irq
|
1997-10-27 12:23:08 +00:00
|
|
|
IRQ value (used at next reset), may be one of 3,4,5,6,10,11,12,15.
|
1997-05-22 08:58:18 +00:00
|
|
|
.It mac
|
1997-10-27 12:23:08 +00:00
|
|
|
Local MAC value (ethernet address).
|
1997-05-22 08:58:18 +00:00
|
|
|
.It macsel
|
|
|
|
.Sq soft
|
2001-07-15 08:06:20 +00:00
|
|
|
(as set by the
|
1997-05-22 08:58:18 +00:00
|
|
|
.Sq mac
|
|
|
|
parameter) or
|
|
|
|
.Sq default
|
|
|
|
(as set at the factory).
|
|
|
|
.It nwid
|
|
|
|
The NWID is a 2-byte parameter passed to the card's radio modem.
|
2001-07-15 08:06:20 +00:00
|
|
|
NWIDs allow multiple logically discrete networks to operate
|
2001-06-06 19:07:03 +00:00
|
|
|
independently whilst occupying the same airspace.
|
1997-05-22 08:58:18 +00:00
|
|
|
Packets with a different NWID are simply ignored by the modem.
|
2001-05-31 11:51:20 +00:00
|
|
|
In the hardware, NWIDs are stored long-term in non-volatile memory
|
2001-07-15 08:06:20 +00:00
|
|
|
(called the PSA or programmable storage area), and are loaded by
|
|
|
|
software into the radio modem when the driver is
|
1997-05-22 08:58:18 +00:00
|
|
|
initialized. This sets the default NWID loaded at startup.
|
1998-11-04 08:33:32 +00:00
|
|
|
.It currnwid
|
1997-05-22 08:58:18 +00:00
|
|
|
This sets the current operating NWID (but does not save it to the
|
|
|
|
PSA).
|
1997-08-01 03:50:23 +00:00
|
|
|
.It cache
|
|
|
|
The driver may maintain a per interface fixed size cache of signal strength,
|
2001-07-15 08:06:20 +00:00
|
|
|
silence, and quality levels, which are indexed by sender MAC addresses.
|
1997-08-01 03:50:23 +00:00
|
|
|
Input packets are stored in the cache, and when received, the values
|
|
|
|
stored in the radio modem are interrogated and stored.
|
|
|
|
There are also two sysctl values (iponly and multicast only) which
|
|
|
|
can be used for filtering out some input packets. By default, the
|
|
|
|
cache mechanism stores only non-unicast IP packets, but this can
|
2000-01-23 20:28:41 +00:00
|
|
|
be changed with
|
|
|
|
.Xr sysctl 8 .
|
|
|
|
Each non-filtered
|
2001-07-15 08:06:20 +00:00
|
|
|
input packet causes a cache update, hence one can monitor
|
|
|
|
the antennae signal strength to a remote system.
|
1997-08-01 03:50:23 +00:00
|
|
|
There are three commands that can be given as values:
|
|
|
|
.Sq raw ,
|
|
|
|
which prints out the raw signal strength data as found in the radio
|
|
|
|
modem hardware value,
|
|
|
|
.Sq scale ,
|
|
|
|
which scales the raw hardware values to 0..100%, and
|
|
|
|
.Sq zero
|
2001-07-15 08:06:20 +00:00
|
|
|
which clears out the cache in case you want to store new samples.
|
1997-05-22 08:58:18 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that if the IRQ on the Wavelan card is incorrect, the interface
|
|
|
|
will be configured, but will not function. The
|
1997-10-27 12:23:08 +00:00
|
|
|
.Nm
|
1997-05-22 08:58:18 +00:00
|
|
|
program should then be used to reconfigure the card to a sensible
|
|
|
|
value.
|
|
|
|
.Sh EXAMPLES
|
2001-08-10 17:35:21 +00:00
|
|
|
Set the NWID to 0x1234:
|
1997-05-22 08:58:18 +00:00
|
|
|
.Bd -literal -offset
|
|
|
|
# wlconfig wl0 nwid 0x1234
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2001-08-10 17:35:21 +00:00
|
|
|
Show the current settings:
|
1997-05-22 08:58:18 +00:00
|
|
|
.Bd -literal -offset
|
|
|
|
# wlconfig wl0
|
|
|
|
Board type : ISA
|
|
|
|
Base address options : 0x300, 0x390, 0x3c0, 0x3e0
|
|
|
|
Waitstates : 0
|
|
|
|
Bus mode : ISA
|
|
|
|
IRQ : 10
|
|
|
|
Default MAC address : 08:00:0e:20:3d:4b
|
|
|
|
Soft MAC address : 00:00:00:00:00:00
|
|
|
|
Current MAC address : Default
|
2000-11-26 23:51:07 +00:00
|
|
|
Adapter compatibility : PC-AT 2.4GHz
|
1997-05-22 08:58:18 +00:00
|
|
|
Threshold preset : 1
|
|
|
|
Call code required : NO
|
|
|
|
Subband : 2425MHz
|
|
|
|
Quality threshold : 3
|
|
|
|
Hardware version : 0 (Rel1/Rel2)
|
|
|
|
Network ID enable : YES
|
|
|
|
NWID : 0xdead
|
|
|
|
Datalink security : NO
|
|
|
|
Databus width : 16 (variable)
|
|
|
|
Configuration state : unconfigured
|
|
|
|
CRC-16 : 0x3c26
|
|
|
|
CRC status : OK
|
2001-01-18 17:23:15 +00:00
|
|
|
.Ed
|
1997-08-01 03:50:23 +00:00
|
|
|
.Pp
|
2001-08-10 17:35:21 +00:00
|
|
|
Print a scaled version of the signal strength cache:
|
1997-08-01 03:50:23 +00:00
|
|
|
.Bd -literal -offset
|
|
|
|
# wlconfig wl0 cache scale
|
1997-05-22 08:58:18 +00:00
|
|
|
.Ed
|
1997-08-01 03:50:23 +00:00
|
|
|
.Sh SEE ALSO
|
1997-09-29 19:11:55 +00:00
|
|
|
.Xr wl 4 ,
|
2000-01-23 20:28:41 +00:00
|
|
|
.Xr sysctl 8
|
1997-05-22 08:58:18 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
This implementation of the
|
1997-10-27 12:23:08 +00:00
|
|
|
.Nm
|
|
|
|
command is completely new, written for Hilink Internet by
|
2001-07-15 08:06:20 +00:00
|
|
|
.An Michael Smith ,
|
1997-10-27 12:23:08 +00:00
|
|
|
and updated by
|
|
|
|
.An Jim Binkley &c .
|