1999-05-05 07:37:11 +00:00
|
|
|
.\" Copyright (c) 1997, 1998, 1999
|
|
|
|
.\" Bill Paul <wpaul@ctr.columbia.edu> 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.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Bill Paul.
|
|
|
|
.\" 4. Neither the name of the author nor the names of any co-contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY Bill Paul 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 Bill Paul OR THE VOICES IN HIS HEAD
|
|
|
|
.\" 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 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1999-05-05 07:37:11 +00:00
|
|
|
.\"
|
2003-03-04 14:47:19 +00:00
|
|
|
.Dd March 4, 2003
|
1999-05-05 07:37:11 +00:00
|
|
|
.Dt WICONTROL 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
1999-05-05 07:37:11 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm wicontrol
|
2004-06-05 20:20:34 +00:00
|
|
|
.Nd "configure Lucent, Intersil, and Atheros wireless devices"
|
1999-05-05 07:37:11 +00:00
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Op Fl o
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2003-09-29 06:34:47 +00:00
|
|
|
.Ar iface Fl l
|
|
|
|
(dump associated stations)
|
|
|
|
.Nm
|
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl L
|
2004-06-05 20:20:34 +00:00
|
|
|
(list available access points)
|
2003-09-29 06:34:47 +00:00
|
|
|
.Nm
|
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl t Ar tx_rate
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl n Ar network_name
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl s Ar station_name
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl c Cm 0 | 1
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl q Ar SSID
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl p Ar port_type
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl a Ar access_point_density
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl m Ar mac_address
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl d Ar max_data_length
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl e Cm 0 | 1
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl k Ar key
|
2001-08-10 10:45:59 +00:00
|
|
|
.Op Fl v Cm 1 | 2 | 3 | 4
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl T Cm 1 | 2 | 3 | 4
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl r Ar RTS_threshold
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl f Ar frequency
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar iface Fl P Cm 0 | 1
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl S Ar max_sleep_duration
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl Z
|
2000-02-02 17:59:13 +00:00
|
|
|
(zero signal cache)
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-09 21:59:07 +00:00
|
|
|
.Op Fl i
|
|
|
|
.Ar iface Fl C
|
2000-02-02 17:59:13 +00:00
|
|
|
(display signal cache)
|
1999-05-05 07:37:11 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2004-06-05 20:20:34 +00:00
|
|
|
utility controls the operation of Lucent, Intersil, and Atheros-based wireless
|
2003-09-29 06:34:47 +00:00
|
|
|
networking devices via
|
1999-05-05 07:37:11 +00:00
|
|
|
.Xr wi 4
|
2003-09-29 06:34:47 +00:00
|
|
|
or
|
|
|
|
.Xr ath 4
|
2000-03-01 14:09:25 +00:00
|
|
|
driver.
|
2003-03-04 14:47:19 +00:00
|
|
|
.Pp
|
2003-10-05 12:09:31 +00:00
|
|
|
You should not use this program to configure IEEE 802.11 parameters.
|
2003-03-04 14:47:19 +00:00
|
|
|
Use
|
|
|
|
.Xr ifconfig 8
|
2004-06-05 20:20:34 +00:00
|
|
|
instead to do those tasks (i.e., set SSID, WEP key, etc.).
|
2003-03-04 14:47:19 +00:00
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
The
|
1999-05-05 07:37:11 +00:00
|
|
|
.Nm
|
2003-09-29 06:34:47 +00:00
|
|
|
utility can also be used to view the current settings of these parameters,
|
2003-10-05 12:09:31 +00:00
|
|
|
dump out the values of the card's statistics counters, list associated
|
2003-09-29 06:34:47 +00:00
|
|
|
stations (in HostAP mode), and scan for available access points.
|
1999-05-05 07:37:11 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar iface
|
|
|
|
argument given to
|
|
|
|
.Nm
|
2004-06-04 19:24:21 +00:00
|
|
|
should be the logical interface name associated with the Lucent, Intersil,
|
2004-06-05 20:20:34 +00:00
|
|
|
and Atheros device
|
2003-09-29 06:34:47 +00:00
|
|
|
.Li ( wi0 , wi1 , ath0 ,
|
2001-08-10 10:45:59 +00:00
|
|
|
etc.).
|
|
|
|
If none is specified then
|
|
|
|
.Dq Li wi0
|
|
|
|
is used as default.
|
1999-05-05 07:37:11 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
The options are as follows:
|
2001-08-10 10:45:59 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Oo Fl i Oc Ar iface Op Fl o
|
2003-09-29 06:34:47 +00:00
|
|
|
Display the current settings of the specified wireless interface.
|
1999-07-30 10:24:57 +00:00
|
|
|
This retrieves the current card settings from the driver and prints them
|
2000-03-02 14:54:02 +00:00
|
|
|
out.
|
|
|
|
Using the additional
|
1999-05-05 07:37:11 +00:00
|
|
|
.Fl o
|
|
|
|
flag will cause
|
|
|
|
.Nm
|
2001-06-26 00:12:58 +00:00
|
|
|
to print out the statistics counters instead of the card settings.
|
2001-08-10 10:45:59 +00:00
|
|
|
Encryption keys are only displayed if
|
|
|
|
.Nm
|
|
|
|
is run as root.
|
2003-09-18 16:18:45 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl a Ar access_point_density
|
|
|
|
Specify the
|
|
|
|
access point density
|
|
|
|
for a given interface.
|
|
|
|
Legal values are
|
|
|
|
.Cm 1
|
|
|
|
(low),
|
|
|
|
.Cm 2
|
|
|
|
(medium) and
|
|
|
|
.Cm 3
|
|
|
|
(high).
|
|
|
|
This setting influences some of the radio modem threshold settings.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl m Ar mac_address
|
|
|
|
Set the station address for the specified interface.
|
|
|
|
The
|
|
|
|
.Ar mac_address
|
|
|
|
is specified as a series of six hexadecimal values separated by colons,
|
|
|
|
e.g.,
|
|
|
|
.Dq Li 00:60:1d:12:34:56 .
|
|
|
|
This programs the new address into the card
|
|
|
|
and updates the interface as well.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl d Ar max_data_length
|
|
|
|
Set the maximum receive and transmit frame size for a specified interface.
|
|
|
|
The
|
|
|
|
.Ar max_data_length
|
|
|
|
can be any number from 350 to 2304.
|
|
|
|
The default is 2304.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl r Ar RTS_threshold
|
|
|
|
Set the RTS/CTS threshold for a given interface.
|
|
|
|
This controls the
|
|
|
|
number of bytes used for the RTS/CTS handshake boundary.
|
|
|
|
The
|
|
|
|
.Ar RTS_threshold
|
|
|
|
can be any value between 0 and 2347.
|
|
|
|
The default is 2347.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl Z
|
|
|
|
Clear the signal strength cache maintained internally by the
|
|
|
|
.Xr wi 4
|
|
|
|
driver.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl C
|
|
|
|
Display the cached signal strength information maintained by the
|
|
|
|
.Xr wi 4
|
|
|
|
driver.
|
|
|
|
The driver retains information about signal strength and
|
|
|
|
noise level for packets received from different hosts.
|
|
|
|
The signal
|
|
|
|
strength and noise level values are displayed in units of dBms.
|
2004-06-05 20:20:34 +00:00
|
|
|
The signal quality value is produced by subtracting the noise level
|
|
|
|
from the signal strength (i.e., less noise and better signal yields
|
2003-09-18 16:18:45 +00:00
|
|
|
better signal quality).
|
|
|
|
.El
|
|
|
|
.Sh DEPRECATED AND OBSOLETE OPTIONS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility has a number of options that are now deprecated or obsolete, as they
|
|
|
|
have been overtaken by extensions to
|
|
|
|
.Xr ifconfig 8
|
|
|
|
and changes to the driver.
|
|
|
|
The deprecated and obsolete options are as follows:
|
|
|
|
.Bl -tag -width indent
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl t Ar tx_rate
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
Use
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm mediaopt
|
2003-03-04 14:47:19 +00:00
|
|
|
instead.
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the transmit rate of the specified interface.
|
|
|
|
The legal values
|
1999-05-22 16:12:54 +00:00
|
|
|
for the transmit rate vary depending on whether the interface is a
|
2000-03-01 14:09:25 +00:00
|
|
|
standard WaveLAN/IEEE or a WaveLAN/IEEE Turbo adapter.
|
|
|
|
The standard
|
1999-05-22 16:12:54 +00:00
|
|
|
NICs support a maximum transmit rate of 2Mbps while the turbo NICs
|
2000-03-01 14:09:25 +00:00
|
|
|
support a maximum speed of 6Mbps.
|
|
|
|
The following table shows the
|
1999-05-22 16:12:54 +00:00
|
|
|
legal transmit rate settings and the corresponding transmit speeds:
|
2001-08-10 10:45:59 +00:00
|
|
|
.Bl -column ".Em TX\ rate" ".Em NIC\ speed" -offset indent
|
1999-05-22 16:12:54 +00:00
|
|
|
.Em "TX rate NIC speed"
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Cm 1 Ta "Fixed Low (1Mbps)"
|
|
|
|
.It Cm 2 Ta "Fixed Standard (2Mbps)"
|
|
|
|
.It Cm 3 Ta "Auto Rate Select (High)"
|
|
|
|
.It Cm 4 Ta "Fixed Medium (4Mbps)"
|
|
|
|
.It Cm 5 Ta "Fixed High (6Mbps)"
|
|
|
|
.It Cm 6 Ta "Auto Rate Select (Standard)"
|
|
|
|
.It Cm 7 Ta "Auto Rate Select (Medium)"
|
1999-05-22 16:12:54 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2001-08-10 10:45:59 +00:00
|
|
|
The default driver setting is
|
|
|
|
.Cm 3
|
|
|
|
(auto rate select).
|
2003-03-04 14:47:19 +00:00
|
|
|
The numbers vary from card to card.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl n Ar network_name
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
Use
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm ssid
|
2003-03-04 14:47:19 +00:00
|
|
|
or
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm nwid
|
2003-03-04 14:47:19 +00:00
|
|
|
instead.
|
|
|
|
.Pp
|
1999-05-05 07:37:11 +00:00
|
|
|
Set the name of the service set (IBSS) that this station wishes to
|
2000-03-01 14:09:25 +00:00
|
|
|
join.
|
|
|
|
The
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar network_name
|
2000-03-01 14:09:25 +00:00
|
|
|
can be any text string up to 30 characters in length.
|
|
|
|
The default name
|
2001-08-10 10:45:59 +00:00
|
|
|
is the string
|
|
|
|
.Dq Li ANY
|
|
|
|
which should allow the station to connect to the first
|
2000-03-01 14:09:25 +00:00
|
|
|
available access point.
|
|
|
|
The interface should be set for BSS mode using
|
1999-05-05 07:37:11 +00:00
|
|
|
the
|
|
|
|
.Fl p
|
|
|
|
flag in order for this to work.
|
|
|
|
.Pp
|
|
|
|
Note: the WaveLAN manual indicates that an empty string will allow the
|
|
|
|
host to connect to any access point, however I have also seen a reference
|
2001-08-10 10:45:59 +00:00
|
|
|
in another driver which indicates that the
|
|
|
|
.Dq Li ANY
|
|
|
|
string works as well.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl s Ar station_name
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
Use
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm stationname
|
2003-03-04 14:47:19 +00:00
|
|
|
or
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm station
|
2003-03-04 14:47:19 +00:00
|
|
|
instead.
|
|
|
|
.Pp
|
1999-05-05 07:37:11 +00:00
|
|
|
Sets the
|
2001-08-10 10:45:59 +00:00
|
|
|
station name
|
2000-03-01 14:09:25 +00:00
|
|
|
for the specified interface.
|
|
|
|
The
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar station_name
|
2000-03-01 14:09:25 +00:00
|
|
|
is used for diagnostic purposes.
|
2001-08-10 10:45:59 +00:00
|
|
|
The
|
|
|
|
.Tn "Lucent WaveMANAGER"
|
|
|
|
software can
|
1999-05-22 16:12:54 +00:00
|
|
|
poll the names of remote hosts.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl c Cm 0 | 1
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
IBSS networks are automatically created on those cards whose firmware
|
|
|
|
supports it while in IBSS mode.
|
|
|
|
.Pp
|
2001-08-10 10:45:59 +00:00
|
|
|
Allow the station to create a service set (IBSS).
|
|
|
|
Permitted values are
|
|
|
|
.Cm 0
|
2005-02-13 22:25:33 +00:00
|
|
|
(do not create IBSS) and
|
2001-08-10 10:45:59 +00:00
|
|
|
.Cm 1
|
|
|
|
(enable creation of IBSS).
|
|
|
|
The default is
|
|
|
|
.Cm 0 .
|
1999-05-05 07:37:11 +00:00
|
|
|
.Pp
|
2003-03-04 14:47:19 +00:00
|
|
|
Only newer versions of the Lucent firmware support this.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl q Ar SSID
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-05-22 11:52:23 +00:00
|
|
|
The
|
|
|
|
.Cm ssid
|
|
|
|
setting from
|
2003-03-04 14:47:19 +00:00
|
|
|
.Xr ifconfig 8
|
|
|
|
is the current preferred way of setting this parameter.
|
|
|
|
.Pp
|
1999-05-05 07:37:11 +00:00
|
|
|
Specify the name of an IBSS (SSID) to create on a given interface.
|
|
|
|
The
|
|
|
|
.Ar SSID
|
|
|
|
can be any text string up to 30 characters long.
|
|
|
|
.Pp
|
|
|
|
Note: this option is provided for experimental purposes only: enabling
|
2005-02-13 22:25:33 +00:00
|
|
|
the creation of an IBSS on a host system does not appear to actually work.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl p Ar port_type
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
It should never be used.
|
|
|
|
Do not use this flag.
|
|
|
|
Its meaning depends on the type of card you are using, as well as the
|
|
|
|
firmware you have installed in the card in some cases.
|
|
|
|
Beware.
|
|
|
|
Danger.
|
|
|
|
Do not use.
|
|
|
|
Instead, use the
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm media
|
2003-03-04 14:47:19 +00:00
|
|
|
and
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm mediaopt
|
2003-03-04 14:47:19 +00:00
|
|
|
commands.
|
|
|
|
.Pp
|
1999-05-05 07:37:11 +00:00
|
|
|
Set the
|
2001-08-10 10:45:59 +00:00
|
|
|
port type
|
2000-03-01 14:09:25 +00:00
|
|
|
for a specified interface.
|
|
|
|
The legal values for
|
2001-08-10 10:45:59 +00:00
|
|
|
.Ar port_type
|
|
|
|
are
|
|
|
|
.Cm 1
|
|
|
|
(BSS mode) and
|
|
|
|
.Cm 3
|
|
|
|
(ad-hoc) mode.
|
2000-03-01 14:09:25 +00:00
|
|
|
In ad-hoc mode, the station can
|
1999-07-30 10:24:57 +00:00
|
|
|
communicate directly with any other stations within direct radio range
|
2001-08-10 10:45:59 +00:00
|
|
|
(provided that they are also operating in ad-hoc mode).
|
|
|
|
In BSS mode,
|
1999-05-05 07:37:11 +00:00
|
|
|
hosts must associate with a service set controlled by an access point,
|
2000-03-01 14:09:25 +00:00
|
|
|
which relays traffic between end stations.
|
2001-08-10 10:45:59 +00:00
|
|
|
The default setting is
|
2003-03-04 14:47:19 +00:00
|
|
|
.Cm 1
|
|
|
|
(BSS mode).
|
|
|
|
Lucent cards have one set of meanings.
|
|
|
|
Prism cards have another.
|
|
|
|
Symbol cards have a third.
|
|
|
|
Do not use this flag.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl e Cm 0 | 1
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:47:19 +00:00
|
|
|
It has been replaced by the
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm wepmode
|
2003-03-04 14:47:19 +00:00
|
|
|
option.
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Enable or disable WEP encryption.
|
|
|
|
Permitted values are
|
2001-08-10 10:45:59 +00:00
|
|
|
.Cm 0
|
2000-02-02 17:59:13 +00:00
|
|
|
(encryption disabled) or
|
2001-08-10 10:45:59 +00:00
|
|
|
.Cm 1
|
2001-08-09 21:59:07 +00:00
|
|
|
(encryption enabled).
|
|
|
|
Encryption is off by default.
|
|
|
|
.Pp
|
|
|
|
Both 128-bit and 64-bit WEP have been broken.
|
2001-08-10 10:45:59 +00:00
|
|
|
See the
|
|
|
|
.Sx BUGS
|
|
|
|
section for details.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl k Ar key Op Fl v Cm 1 | 2 | 3 | 4
|
2003-04-07 04:42:37 +00:00
|
|
|
This flag is obsolete.
|
2003-03-04 14:47:19 +00:00
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm wepkey
|
2003-03-04 14:47:19 +00:00
|
|
|
should be used instead.
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Set WEP encryption keys.
|
|
|
|
There are four default encryption keys
|
|
|
|
that can be programmed.
|
|
|
|
A specific key can be set using
|
2000-02-02 17:59:13 +00:00
|
|
|
the
|
|
|
|
.Fl v
|
2000-03-01 14:09:25 +00:00
|
|
|
flag.
|
|
|
|
If the
|
2000-02-02 17:59:13 +00:00
|
|
|
.Fl v
|
2000-03-01 14:09:25 +00:00
|
|
|
flag is not specified, the first key will be set.
|
|
|
|
Encryption keys
|
2004-06-05 20:20:34 +00:00
|
|
|
can either be normal text (i.e.,
|
2001-08-10 10:45:59 +00:00
|
|
|
.Dq Li hello )
|
2004-06-05 20:20:34 +00:00
|
|
|
or a series of hexadecimal digits (i.e.,
|
2001-08-10 10:45:59 +00:00
|
|
|
.Dq Li 0x1234512345 ) .
|
|
|
|
For
|
2000-02-02 17:59:13 +00:00
|
|
|
WaveLAN Turbo Silver cards, the key is restricted to 40 bits, hence
|
|
|
|
the key can be either a 5 character text string or 10 hex digits.
|
2000-09-21 00:25:07 +00:00
|
|
|
For WaveLAN Turbo Gold cards, the key can also be 104 bits,
|
|
|
|
which means the key can be specified as either a 13 character text
|
|
|
|
string or 26 hex digits in addition to the formats supported by the
|
|
|
|
Silver cards.
|
2001-08-09 21:59:07 +00:00
|
|
|
.Pp
|
2002-08-12 06:59:04 +00:00
|
|
|
For maximum portability, hex keys are recommended;
|
2002-11-27 15:31:08 +00:00
|
|
|
the mapping of text keys to WEP encryption is usually driver-specific.
|
|
|
|
In particular, the
|
|
|
|
.Tn Windows
|
|
|
|
drivers do this mapping differently to
|
|
|
|
.Fx .
|
2002-08-12 06:59:04 +00:00
|
|
|
.Pp
|
|
|
|
Note: Both 128-bit and 64-bit WEP encryption have been broken.
|
2001-08-10 10:45:59 +00:00
|
|
|
See the
|
|
|
|
.Sx BUGS
|
|
|
|
section for details.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl T Cm 1 | 2 | 3 | 4
|
2003-04-07 04:42:37 +00:00
|
|
|
This flag is obsolete.
|
2003-03-04 14:47:19 +00:00
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm weptxkey
|
2003-03-04 14:47:19 +00:00
|
|
|
should be used instead.
|
|
|
|
.Pp
|
2000-02-02 17:59:13 +00:00
|
|
|
Specify which of the four WEP encryption keys will be used to
|
|
|
|
encrypt transmitted packets.
|
2001-08-09 21:59:07 +00:00
|
|
|
.Pp
|
2001-08-10 04:17:55 +00:00
|
|
|
Note: Both 128-bit and 64-bit WEP have been broken.
|
2001-08-10 10:45:59 +00:00
|
|
|
See the
|
|
|
|
.Sx BUGS
|
|
|
|
section for details.
|
|
|
|
.It Oo Fl i Oc Ar iface Fl f Ar frequency
|
2003-04-06 19:27:49 +00:00
|
|
|
This flag is deprecated.
|
2003-03-04 14:55:58 +00:00
|
|
|
Use
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm channel
|
2003-03-04 14:55:58 +00:00
|
|
|
instead.
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the radio frequency of a given interface.
|
|
|
|
The
|
1999-05-14 18:31:31 +00:00
|
|
|
.Ar frequency
|
2000-03-01 14:09:25 +00:00
|
|
|
should be specified as a channel ID as shown in the table below.
|
|
|
|
The
|
1999-05-14 18:31:31 +00:00
|
|
|
list of available frequencies is dependent on radio regulations specified
|
2000-03-01 14:09:25 +00:00
|
|
|
by regional authorities.
|
|
|
|
Recognized regulatory authorities include
|
|
|
|
the FCC (United States), ETSI (Europe), France and Japan.
|
|
|
|
Frequencies
|
2002-11-04 22:44:42 +00:00
|
|
|
in the table are specified in MHz.
|
2001-08-10 10:45:59 +00:00
|
|
|
.Bl -column ".Em Channel\ ID" ".Em FCC" ".Em ETSI" ".Em France" ".Em Japan" -offset indent
|
1999-05-14 18:31:31 +00:00
|
|
|
.Em "Channel ID FCC ETSI France Japan"
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Cm 1 Ta "2412 2412 - 2412"
|
|
|
|
.It Cm 2 Ta "2417 2417 - 2417"
|
|
|
|
.It Cm 3 Ta "2422 2422 - 2422"
|
|
|
|
.It Cm 4 Ta "2427 2427 - 2427"
|
|
|
|
.It Cm 5 Ta "2432 2432 - 2432"
|
|
|
|
.It Cm 6 Ta "2437 2437 - 2437"
|
|
|
|
.It Cm 7 Ta "2442 2442 - 2442"
|
|
|
|
.It Cm 8 Ta "2447 2447 - 2447"
|
|
|
|
.It Cm 9 Ta "2452 2452 - 2452"
|
|
|
|
.It Cm 10 Ta "2457 2457 2457 2457"
|
|
|
|
.It Cm 11 Ta "2462 2462 2462 2462"
|
|
|
|
.It Cm 12 Ta "- 2467 2467 2467"
|
|
|
|
.It Cm 13 Ta "- 2472 2472 2472"
|
|
|
|
.It Cm 14 Ta "- - - 2484"
|
1999-05-14 18:31:31 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
If an illegal channel is specified, the
|
2000-03-01 14:09:25 +00:00
|
|
|
NIC will revert to its default channel.
|
|
|
|
For NICs sold in the United States
|
2001-08-10 10:45:59 +00:00
|
|
|
and Europe, the default channel is
|
|
|
|
.Cm 3 .
|
|
|
|
For NICs sold in France, the default channel is
|
|
|
|
.Cm 11 .
|
|
|
|
For NICs sold in Japan, the default channel is
|
|
|
|
.Cm 14 ,
|
2000-07-26 12:50:35 +00:00
|
|
|
and it is the only available channel for pre-11Mbps NICs.
|
1999-05-14 18:31:31 +00:00
|
|
|
Note that two stations must be set to the same channel in order to
|
|
|
|
communicate.
|
2001-08-10 10:45:59 +00:00
|
|
|
.It Oo Fl i Oc Ar iface Fl P Cm 0 | 1
|
2003-04-07 04:42:37 +00:00
|
|
|
This flag is obsolete.
|
2003-03-04 14:47:19 +00:00
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
2003-05-22 11:52:23 +00:00
|
|
|
.Cm powersave
|
2003-03-04 14:47:19 +00:00
|
|
|
should be used instead.
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
Enable or disable power management on a given interface.
|
|
|
|
Enabling
|
1999-05-07 03:28:54 +00:00
|
|
|
power management uses an alternating sleep/wake protocol to help
|
|
|
|
conserve power on mobile stations, at the cost of some increased
|
2000-03-02 14:54:02 +00:00
|
|
|
receive latency.
|
|
|
|
Power management is off by default.
|
2000-03-01 14:09:25 +00:00
|
|
|
Note that power
|
1999-05-07 03:28:54 +00:00
|
|
|
management requires the cooperation of an access point in order to
|
2000-03-01 14:09:25 +00:00
|
|
|
function; it is not functional in ad-hoc mode.
|
|
|
|
Also, power management
|
1999-05-07 03:28:54 +00:00
|
|
|
is only implemented in Lucent WavePOINT firmware version 2.03 or
|
2000-03-01 14:09:25 +00:00
|
|
|
later, and in WaveLAN PCMCIA adapter firmware 2.00 or later.
|
|
|
|
Older
|
|
|
|
revisions will silently ignore the power management setting.
|
|
|
|
Legal
|
2001-08-10 10:45:59 +00:00
|
|
|
values for this parameter are
|
|
|
|
.Cm 0
|
|
|
|
(off) and
|
|
|
|
.Cm 1
|
|
|
|
(on).
|
|
|
|
.It Oo Fl i Oc Ar iface Fl S Ar max_sleep_interval
|
2003-04-07 04:42:37 +00:00
|
|
|
This flag is obsolete.
|
2003-03-04 14:47:19 +00:00
|
|
|
The
|
|
|
|
.Xr ifconfig 8
|
2005-08-22 09:59:13 +00:00
|
|
|
.Cm powersavesleep
|
2003-03-04 14:47:19 +00:00
|
|
|
should be used instead.
|
|
|
|
.Pp
|
1999-05-07 03:28:54 +00:00
|
|
|
Specify the sleep interval to use when power management is enabled.
|
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Ar max_sleep_interval
|
2000-03-01 14:09:25 +00:00
|
|
|
is specified in milliseconds.
|
|
|
|
The default is 100.
|
1999-05-05 07:37:11 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2003-09-29 06:34:47 +00:00
|
|
|
.Xr ath 4 ,
|
2003-03-04 14:47:19 +00:00
|
|
|
.Xr awi 4 ,
|
2003-05-22 11:52:23 +00:00
|
|
|
.Xr ipsec 4 ,
|
1999-05-05 07:37:11 +00:00
|
|
|
.Xr wi 4 ,
|
|
|
|
.Xr ifconfig 8
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Fx 3.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility was written by
|
|
|
|
.An Bill Paul Aq wpaul@ctr.columbia.edu .
|
2001-08-09 21:59:07 +00:00
|
|
|
.Sh BUGS
|
2003-04-06 19:27:49 +00:00
|
|
|
There are deprecated flags here that duplicate functionality of
|
2003-05-22 11:52:23 +00:00
|
|
|
.Xr ifconfig 8 .
|
2003-09-18 16:18:45 +00:00
|
|
|
These flags were deprecated in
|
2003-04-06 19:27:49 +00:00
|
|
|
.Fx 5.1
|
2003-09-18 16:18:45 +00:00
|
|
|
and will be removed in a future release.
|
2003-03-04 14:47:19 +00:00
|
|
|
.Pp
|
2001-08-10 04:17:55 +00:00
|
|
|
The WEP encryption method has been broken so that third parties
|
|
|
|
can recover the keys in use relatively quickly at distances that are
|
|
|
|
surprising to most people.
|
|
|
|
Do not rely on WEP for anything but the most basic, remedial security.
|
|
|
|
IPSEC will give you a higher level of security and should be used
|
|
|
|
whenever possible.
|
|
|
|
Do not trust access points or wireless machines that connect through
|
|
|
|
them as they can provide no assurance that the traffic is legitimate.
|
|
|
|
MAC addresses can easily be forged and should therefore not be used as
|
|
|
|
the only access control.
|
2001-08-09 21:59:07 +00:00
|
|
|
.Pp
|
|
|
|
The attack on WEP is a passive attack, requiring only the ability to
|
|
|
|
sniff packets on the network.
|
|
|
|
The passive attack can be launched at a distance larger, up to many
|
|
|
|
miles, than one might otherwise expect given a specialized antenna
|
|
|
|
used in point to point applications.
|
2001-08-10 04:17:55 +00:00
|
|
|
The attacker can recover the keys from a 128-bit WEP network with only
|
|
|
|
5,000,000 to 6,000,000 packets.
|
2002-12-27 12:15:40 +00:00
|
|
|
While this may sound like a large number of packets, empirical
|
2001-08-09 21:59:07 +00:00
|
|
|
evidence suggests that this amount of traffic is generated in a few
|
|
|
|
hours on a partially loaded network.
|
2001-08-10 04:17:55 +00:00
|
|
|
Once a key has been compromised, the only remedial action is to
|
|
|
|
discontinue it and use a new key.
|
2001-08-09 21:59:07 +00:00
|
|
|
.Pp
|
2001-08-10 10:45:59 +00:00
|
|
|
See
|
|
|
|
.Pa http://www.cs.rice.edu/~astubble/wep/wep_attack.html
|
|
|
|
for details of the attack.
|
2003-04-06 19:27:49 +00:00
|
|
|
Many programs to assist in cracking WEP keys are widely available.
|
2001-08-10 04:17:55 +00:00
|
|
|
.Pp
|
|
|
|
If you must use WEP, you are strongly encouraged to pick keys whose
|
2003-05-22 11:52:23 +00:00
|
|
|
bytes are random and not confined to
|
|
|
|
.Tn ASCII
|
|
|
|
characters.
|
2003-04-06 19:27:49 +00:00
|
|
|
Brute force attacks on WEP keys are also possible.
|
2003-05-22 11:52:23 +00:00
|
|
|
Experience has showns that
|
|
|
|
.Tn ASCII
|
|
|
|
keys can be cracked in less than a day.
|
2003-04-06 19:27:49 +00:00
|
|
|
Even random bytes can be cracked in less than two weeks.
|
2003-03-04 14:47:19 +00:00
|
|
|
.Pp
|
|
|
|
Signal cache is broken right now.
|