2000-01-14 20:41:03 +00:00
|
|
|
.\" Copyright (c) 1997, 1998, 1999
|
|
|
|
.\" Bill Paul <wpaul@ee.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.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd September 10, 1999
|
|
|
|
.Dt ANCONTROL 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
2000-01-14 20:41:03 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ancontrol
|
|
|
|
.Nd configure Aironet 4500/4800 devices
|
|
|
|
.Sh SYNOPSIS
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl A
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl N
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl S
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl I
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl T
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl i Ar iface Fl C
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl t Cm 0 | 1 | 2 | 3 | 4
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl s Cm 0 | 1 | 2 | 3
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Op Fl v Cm 1 | 2 | 3 | 4
|
2000-11-13 23:04:16 +00:00
|
|
|
.Fl a Ar AP
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl b Ar beacon_period
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Op Fl v Cm 0 | 1
|
|
|
|
.Fl d Cm 0 | 1 | 2 | 3
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl e Cm 0 | 1 | 2 | 3
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Op Fl v Cm 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
|
2000-11-13 23:04:16 +00:00
|
|
|
.Fl k Ar key
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl K Cm 0 | 1 | 2
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl W Cm 0 | 1 | 2
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl j Ar netjoin_timeout
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl l Ar station_name
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl m Ar mac_address
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-12-31 22:01:44 +00:00
|
|
|
.Fl i Ar iface Fl m Ar mac address
|
|
|
|
.Nm
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fl i Ar iface
|
2001-09-11 11:12:53 +00:00
|
|
|
.Op Fl v Cm 1 | 2 | 3
|
2000-11-13 23:04:16 +00:00
|
|
|
.Fl n Ar SSID
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-12-31 22:01:44 +00:00
|
|
|
.Fl i Ar iface Fl o Ar 0|1
|
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl o Cm 0 | 1
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl p Ar tx_power
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl c Ar frequency
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl f Ar fragmentation_threshold
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl r Ar RTS_threshold
|
2000-12-11 09:42:00 +00:00
|
|
|
.Nm
|
2001-09-11 11:12:53 +00:00
|
|
|
.Fl i Ar iface Fl M Cm 0 Ns - Ns Cm 15
|
2001-09-10 02:05:10 +00:00
|
|
|
.Nm
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl h
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command controls the operation of Aironet wireless networking
|
|
|
|
devices via the
|
|
|
|
.Xr an 4
|
2000-03-01 14:09:25 +00:00
|
|
|
driver.
|
|
|
|
Most of the parameters that can be changed relate to the
|
|
|
|
IEEE 802.11 protocol which the Aironet cards implement.
|
2000-12-08 19:02:35 +00:00
|
|
|
This includes such things as
|
2000-01-14 20:41:03 +00:00
|
|
|
the station name, whether the station is operating in ad-hoc (point
|
|
|
|
to point) or infrastructure mode, and the network name of a service
|
2000-03-01 14:09:25 +00:00
|
|
|
set to join.
|
|
|
|
The
|
2000-01-14 20:41:03 +00:00
|
|
|
.Nm
|
|
|
|
command can also be used to view the current NIC status, configuration
|
|
|
|
and to dump out the values of the card's statistics counters.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar iface
|
|
|
|
argument given to
|
|
|
|
.Nm
|
|
|
|
should be the logical interface name associated with the Aironet
|
2001-09-11 11:12:53 +00:00
|
|
|
device
|
|
|
|
.Li ( an0 , an1 ,
|
|
|
|
etc.).
|
|
|
|
If one isn't specified the device
|
|
|
|
.Dq Li an0
|
|
|
|
will be assumed.
|
2000-12-08 19:02:35 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command is not designed to support the combination of arguments from different
|
2000-12-11 09:42:00 +00:00
|
|
|
.Sx SYNOPSIS
|
2000-12-08 19:02:35 +00:00
|
|
|
lines in a single
|
|
|
|
.Nm
|
|
|
|
invocation, and such combinations are not recommended.
|
2000-01-14 20:41:03 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
The options are as follows:
|
2001-09-11 11:15:48 +00:00
|
|
|
.Bl -tag -width indent
|
2000-01-14 20:41:03 +00:00
|
|
|
.It Fl i Ar iface Fl A
|
2000-12-08 19:02:35 +00:00
|
|
|
Display the preferred access point list.
|
2000-03-01 14:09:25 +00:00
|
|
|
The AP list can be used by
|
2000-01-14 20:41:03 +00:00
|
|
|
stations to specify the MAC address of access points with which it
|
2000-03-01 14:09:25 +00:00
|
|
|
wishes to associate.
|
|
|
|
If no AP list is specified (the default) then
|
2000-01-14 20:41:03 +00:00
|
|
|
the station will associate with the first access point that it finds
|
2000-03-01 14:09:25 +00:00
|
|
|
which serves the SSID(s) specified in the SSID list.
|
|
|
|
The AP list can
|
2000-01-14 20:41:03 +00:00
|
|
|
be modified with the
|
|
|
|
.Fl a
|
|
|
|
option.
|
|
|
|
.It Fl i Ar iface Fl N
|
2000-03-01 14:09:25 +00:00
|
|
|
Display the SSID list.
|
2001-09-11 11:12:53 +00:00
|
|
|
This is a list of service set IDs (i.e., network names)
|
2000-03-01 14:09:25 +00:00
|
|
|
with which the station wishes to associate.
|
|
|
|
There may be up to three SSIDs
|
2000-01-14 20:41:03 +00:00
|
|
|
in the list: the station will go through the list in ascending order and
|
|
|
|
associate with the first matching SSID that it finds.
|
|
|
|
.It Fl i Ar iface Fl S
|
2000-03-01 14:09:25 +00:00
|
|
|
Display NIC status information.
|
|
|
|
This includes the current operating
|
2000-01-14 20:41:03 +00:00
|
|
|
status, current BSSID, SSID, channel, beacon period and currently
|
2000-03-01 14:09:25 +00:00
|
|
|
associated access point.
|
|
|
|
The operating mode indicates the state of
|
|
|
|
the NIC, MAC status and receiver status.
|
2001-09-11 11:12:53 +00:00
|
|
|
When the
|
|
|
|
.Qq Li synced
|
|
|
|
keyword
|
2000-01-14 20:41:03 +00:00
|
|
|
appears, it means the NIC has successfully associated with an access
|
2001-09-11 11:12:53 +00:00
|
|
|
point, associated with an ad-hoc
|
|
|
|
.Dq master
|
|
|
|
station, or become a
|
|
|
|
.Dq master
|
2000-03-01 14:09:25 +00:00
|
|
|
itself.
|
|
|
|
The beacon period can be anything between 20 and 976 milliseconds.
|
2000-01-14 20:41:03 +00:00
|
|
|
The default is 100.
|
|
|
|
.It Fl i Ar iface Fl I
|
2000-03-01 14:09:25 +00:00
|
|
|
Display NIC capability information.
|
|
|
|
This shows the device type,
|
2000-01-14 20:41:03 +00:00
|
|
|
frequency, speed and power level capablities and firmware revision levels.
|
|
|
|
.It Fl i Ar iface Fl T
|
|
|
|
Display the NIC's internal statistics counters.
|
|
|
|
.It Fl i Ar iface Fl C
|
2000-03-01 14:09:25 +00:00
|
|
|
Display current NIC configuration.
|
|
|
|
This shows the current operation mode,
|
2000-01-14 20:41:03 +00:00
|
|
|
receive mode, MAC address, power save settings, various timing settings,
|
|
|
|
channel selection, diversity, transmit power and transmit speed.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl t Cm 0 | 1 | 2 | 3 | 4
|
2000-03-01 14:09:25 +00:00
|
|
|
Select transmit speed.
|
|
|
|
The available settings are as follows:
|
2001-09-11 11:12:53 +00:00
|
|
|
.Bl -column ".Em TX rate" -offset indent
|
2000-01-14 20:41:03 +00:00
|
|
|
.Em "TX rate NIC speed"
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Cm 0 Ta "Auto -- NIC selects optimal speed"
|
|
|
|
.It Cm 1 Ta "1Mbps fixed"
|
|
|
|
.It Cm 2 Ta "2Mbps fixed"
|
|
|
|
.It Cm 3 Ta "5.5Mbps fixed"
|
|
|
|
.It Cm 4 Ta "11Mbps fixed"
|
2000-01-14 20:41:03 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that the 5.5 and 11Mbps settings are only supported on the 4800
|
|
|
|
series adapters: the 4500 series adapters have a maximum speed of 2Mbps.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl s Cm 0 | 1 | 2 | 3
|
2000-03-01 14:09:25 +00:00
|
|
|
Set power save mode.
|
|
|
|
Valid selections are as follows:
|
2001-09-11 11:12:53 +00:00
|
|
|
.Bl -column ".Em Selection" -offset indent
|
2000-01-14 20:41:03 +00:00
|
|
|
.Em "Selection Power save mode"
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Cm 0 Ta "None - power save disabled"
|
|
|
|
.It Cm 1 Ta "Constantly awake mode (CAM)"
|
|
|
|
.It Cm 2 Ta "Power Save Polling (PSP)"
|
|
|
|
.It Cm 3 Ta "Fast Power Save Polling (PSP-CAM)"
|
2000-01-14 20:41:03 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Note that for IBSS (ad-hoc) mode, only PSP mode is supported, and only
|
|
|
|
if the ATIM window is non-zero.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Oo Fl v Cm 1 | 2 | 3 | 4 Oc Fl a Ar AP
|
2000-12-11 09:42:00 +00:00
|
|
|
Set preferred access point.
|
2000-03-01 14:09:25 +00:00
|
|
|
The
|
2000-01-14 20:41:03 +00:00
|
|
|
.Ar AP
|
|
|
|
is specified as a MAC address consisting of 6 hexadecimal values
|
2000-03-01 14:09:25 +00:00
|
|
|
separated by colons.
|
|
|
|
By default, the
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl a
|
2000-03-01 14:09:25 +00:00
|
|
|
option only sets the first entry in the AP list.
|
|
|
|
The
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl v
|
|
|
|
modifier can be used to specify exactly which AP list entry is to be
|
2000-03-01 14:09:25 +00:00
|
|
|
modified.
|
|
|
|
If the
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl v
|
|
|
|
flag is not used, the first AP list entry will be changed.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl b Ar beacon_period
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the ad-hoc mode beacon period.
|
2001-09-11 11:12:53 +00:00
|
|
|
The
|
|
|
|
.Ar beacon_period
|
|
|
|
is specified in milliseconds.
|
2000-03-01 14:09:25 +00:00
|
|
|
The default is 100ms.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Oo Fl v Cm 0 | 1 Oc Fl d Cm 0 | 1 | 2 | 3
|
2000-03-01 14:09:25 +00:00
|
|
|
Select the antenna diversity.
|
|
|
|
Aironet devices can be configured with up
|
2000-01-14 20:41:03 +00:00
|
|
|
to two antennas, and transmit and receive diversity can be configured
|
2000-03-01 14:09:25 +00:00
|
|
|
accordingly.
|
|
|
|
Valid selections are as follows:
|
2001-09-11 11:12:53 +00:00
|
|
|
.Bl -column ".Em Selection" -offset indent
|
2000-01-14 20:41:03 +00:00
|
|
|
.Em "Selection Diversity"
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Cm 0 Ta "Select factory default diversity"
|
|
|
|
.It Cm 1 Ta "Antenna 1 only"
|
|
|
|
.It Cm 2 Ta "Antenna 2 only"
|
|
|
|
.It Cm 3 Ta "Antenna 1 and 2"
|
2000-01-14 20:41:03 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2000-03-01 14:09:25 +00:00
|
|
|
The receive and transmit diversity can be set independently.
|
|
|
|
The user
|
2000-01-14 20:41:03 +00:00
|
|
|
must specify which diversity setting is to be modified by using the
|
|
|
|
.Fl v
|
|
|
|
option: selection
|
2001-09-11 11:12:53 +00:00
|
|
|
.Cm 0
|
2000-01-14 20:41:03 +00:00
|
|
|
sets the receive diversity and
|
2001-09-11 11:12:53 +00:00
|
|
|
.Cm 1
|
2000-01-14 20:41:03 +00:00
|
|
|
sets the transmit diversity.
|
2001-12-31 22:01:44 +00:00
|
|
|
.It Fl i Ar iface Fl e Cm 0 | 1 | 2 | 3 | 4
|
2000-12-08 19:02:35 +00:00
|
|
|
Set the transmit WEP key to use.
|
|
|
|
Note that until this command is issued, the device will use the
|
2001-09-11 11:12:53 +00:00
|
|
|
last key programmed.
|
|
|
|
The transmit key is stored in NVRAM.
|
|
|
|
Currently
|
|
|
|
set transmit key can be checked via
|
|
|
|
.Fl C
|
2001-12-31 22:01:44 +00:00
|
|
|
option. The 4th key sets the card in "Home Network Mode" and uses the
|
|
|
|
home key.
|
|
|
|
.It Fl i Ar iface Oo Fl v Cm 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Oc Fl k Ar key
|
2000-12-11 09:42:00 +00:00
|
|
|
Set a WEP key.
|
|
|
|
For 40 bit prefix 10 hex character with 0x.
|
|
|
|
For 128 bit prefix 26 hex character with 0x.
|
2001-09-11 11:12:53 +00:00
|
|
|
Use
|
|
|
|
.Qq
|
|
|
|
as the key to erase the key.
|
2000-12-11 09:42:00 +00:00
|
|
|
Supports 4 keys; even numbers are for permanent keys
|
2000-12-08 19:02:35 +00:00
|
|
|
and odd number are for temporary keys.
|
2001-09-11 11:12:53 +00:00
|
|
|
For example,
|
|
|
|
.Fl v Cm 1
|
|
|
|
sets the first temporary key.
|
|
|
|
(A
|
|
|
|
.Dq permanent
|
|
|
|
key is stored in NVRAM; a
|
|
|
|
.Dq temporary
|
|
|
|
key is not.)
|
2000-12-08 19:02:35 +00:00
|
|
|
Note that the device will use the most recently-programmed key by default.
|
2001-09-11 11:12:53 +00:00
|
|
|
Currently set keys can be checked via
|
|
|
|
.Fl C
|
|
|
|
option, only the sizes of the
|
2001-12-31 22:01:44 +00:00
|
|
|
keys are returned. The 8th key is for the home key. Note that
|
|
|
|
the value for the home key can be read back from firmware.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl K Cm 0 | 1 | 2
|
2000-12-11 09:42:00 +00:00
|
|
|
Set authorization type.
|
2001-09-11 11:12:53 +00:00
|
|
|
Use
|
|
|
|
.Cm 0
|
|
|
|
for none,
|
|
|
|
.Cm 1
|
|
|
|
for
|
|
|
|
.Dq Open ,
|
|
|
|
.Cm 2
|
|
|
|
for
|
|
|
|
.Dq "Shared Key" .
|
|
|
|
.It Fl i Ar iface Fl W Cm 0 | 1 | 2
|
2000-12-11 09:42:00 +00:00
|
|
|
Enable WEP.
|
2001-09-11 11:12:53 +00:00
|
|
|
Use
|
|
|
|
.Cm 0
|
|
|
|
for no WEP,
|
|
|
|
.Cm 1
|
|
|
|
to enable full WEP,
|
|
|
|
.Cm 2
|
|
|
|
for mixed cell.
|
2001-12-31 22:01:44 +00:00
|
|
|
.It Fl i Ar iface Fl L Ar user_name
|
|
|
|
Enable LEAP and query for password. It will check to see if it
|
|
|
|
has authenticated for up to 60s. To disable LEAP set WEP mode.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl j Ar netjoin_timeout
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the ad-hoc network join timeout.
|
|
|
|
When a station is first activated
|
2001-09-11 11:12:53 +00:00
|
|
|
in ad-hoc mode, it will search out a
|
|
|
|
.Dq master
|
|
|
|
station with the desired
|
2000-03-01 14:09:25 +00:00
|
|
|
SSID and associate with it.
|
|
|
|
If the station is unable to locate another
|
2000-01-14 20:41:03 +00:00
|
|
|
station with the same SSID after a suitable timeout, it sets itself up
|
2001-09-11 11:12:53 +00:00
|
|
|
as the
|
|
|
|
.Dq master
|
|
|
|
so that other stations may associate with it.
|
2000-03-01 14:09:25 +00:00
|
|
|
This
|
2000-01-14 20:41:03 +00:00
|
|
|
timeout defaults to 10000 milliseconds (10 seconds) but may be changed
|
2000-03-01 14:09:25 +00:00
|
|
|
with this option.
|
|
|
|
The timeout should be specified in milliseconds.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl l Ar station_name
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the station name used internally by the NIC.
|
|
|
|
The
|
2001-09-11 11:12:53 +00:00
|
|
|
.Ar station_name
|
2000-03-01 14:09:25 +00:00
|
|
|
can be any text string up to 16 characters in length.
|
|
|
|
The default name
|
2001-08-13 16:33:00 +00:00
|
|
|
is set by the driver to
|
|
|
|
.Dq Li FreeBSD .
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl m Ar mac_address
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the station address for the specified interface.
|
|
|
|
The
|
2001-09-11 11:12:53 +00:00
|
|
|
.Ar mac_address
|
2000-01-14 20:41:03 +00:00
|
|
|
is specified as a series of six hexadecimal values separated by colons,
|
2001-09-11 11:12:53 +00:00
|
|
|
e.g.:
|
|
|
|
.Li 00:60:1d:12:34:56 .
|
2000-03-02 14:54:02 +00:00
|
|
|
This programs the new address into the card
|
2000-01-14 20:41:03 +00:00
|
|
|
and updates the interface as well.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Oo Fl v Cm 1 | 2 | 3 Oc Fl n Ar SSID
|
2000-12-11 09:42:00 +00:00
|
|
|
Set the desired SSID (network name).
|
|
|
|
There are three SSIDs which allows
|
2000-01-14 20:41:03 +00:00
|
|
|
the NIC to work with access points at several locations without needing
|
2000-03-01 14:09:25 +00:00
|
|
|
to be reconfigured.
|
|
|
|
The NIC checks each SSID in sequence when searching
|
|
|
|
for a match.
|
|
|
|
The SSID to be changed can be specified with the
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl v
|
2000-03-01 14:09:25 +00:00
|
|
|
modifier option.
|
|
|
|
If the
|
2000-01-14 20:41:03 +00:00
|
|
|
.Fl v
|
|
|
|
flag isn't used, the first SSID in the list is set.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl o Cm 0 | 1
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the operating mode of the Aironet interface.
|
|
|
|
Valid selections are
|
2001-09-11 11:12:53 +00:00
|
|
|
.Cm 0
|
2000-01-14 20:41:03 +00:00
|
|
|
for ad-hoc mode and
|
2001-09-11 11:12:53 +00:00
|
|
|
.Cm 1
|
2000-03-01 14:09:25 +00:00
|
|
|
for infrastructure mode.
|
2001-03-30 16:32:52 +00:00
|
|
|
The default driver setting is for infrastructure
|
2000-01-14 20:41:03 +00:00
|
|
|
mode.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl p Ar tx_power
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the transmit power level in milliwatts.
|
|
|
|
Valid power settings
|
2000-01-14 20:41:03 +00:00
|
|
|
vary depending on the actual NIC and can be viewed by dumping the
|
|
|
|
device capabilities with the
|
|
|
|
.Fl I
|
2000-03-02 14:54:02 +00:00
|
|
|
flag.
|
|
|
|
Typical values are 1, 5, 20, 50 and 100mW.
|
2000-03-01 14:09:25 +00:00
|
|
|
Selecting 0 sets
|
2000-01-14 20:41:03 +00:00
|
|
|
the factory default.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl c Ar frequency
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the radio frequency of a given interface.
|
|
|
|
The
|
2000-01-14 20:41:03 +00:00
|
|
|
.Ar frequency
|
2000-03-01 14:09:25 +00:00
|
|
|
should be specfied as a channel ID as shown in the table below.
|
|
|
|
The
|
2000-01-14 20:41:03 +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
|
2000-01-14 20:41:03 +00:00
|
|
|
in the table are specified in Mhz.
|
2001-09-11 11:12:53 +00:00
|
|
|
.Bl -column ".Em Channel ID" ".Em FCC" ".Em ETSI" ".Em France" ".Em Japan" -offset indent
|
2000-01-14 20:41:03 +00:00
|
|
|
.Em "Channel ID FCC ETSI France Japan"
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Cm 1 Ta 2412 Ta 2412 Ta - Ta -
|
|
|
|
.It Cm 2 Ta 2417 Ta 2417 Ta - Ta -
|
|
|
|
.It Cm 3 Ta 2422 Ta 2422 Ta - Ta -
|
|
|
|
.It Cm 4 Ta 2427 Ta 2427 Ta - Ta -
|
|
|
|
.It Cm 5 Ta 2432 Ta 2432 Ta - Ta -
|
|
|
|
.It Cm 6 Ta 2437 Ta 2437 Ta - Ta -
|
|
|
|
.It Cm 7 Ta 2442 Ta 2442 Ta - Ta -
|
|
|
|
.It Cm 8 Ta 2447 Ta 2447 Ta - Ta -
|
|
|
|
.It Cm 9 Ta 2452 Ta 2452 Ta - Ta -
|
|
|
|
.It Cm 10 Ta 2457 Ta 2457 Ta 2457 Ta -
|
|
|
|
.It Cm 11 Ta 2462 Ta 2462 Ta 2462 Ta -
|
|
|
|
.It Cm 12 Ta - Ta 2467 Ta 2467 Ta -
|
|
|
|
.It Cm 13 Ta - Ta 2472 Ta 2472 Ta -
|
|
|
|
.It Cm 14 Ta - Ta - Ta - Ta 2484
|
2000-01-14 20:41:03 +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
|
2000-12-11 09:42:00 +00:00
|
|
|
and Europe, the default channel is 3.
|
|
|
|
For NICs sold in France, the default
|
2000-03-02 14:54:02 +00:00
|
|
|
channel is 11.
|
|
|
|
For NICs sold in Japan, the only available channel is 14.
|
2000-01-14 20:41:03 +00:00
|
|
|
Note that two stations must be set to the same channel in order to
|
|
|
|
communicate.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl f Ar fragmentation_threshold
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the fragmentation threshold in bytes.
|
|
|
|
This threshold controls the
|
2000-01-14 20:41:03 +00:00
|
|
|
point at which outgoing packets will be split into multiple fragments.
|
|
|
|
If a single fragment is not sent successfully, only that fragment will
|
2000-03-01 14:09:25 +00:00
|
|
|
need to be retransmitted instead of the whole packet.
|
|
|
|
The fragmentation
|
|
|
|
threshold can be anything from 64 to 2312 bytes.
|
|
|
|
The default is 2312.
|
2001-12-31 22:01:44 +00:00
|
|
|
.It Fl i Ar iface Fl M Ar 0-15
|
|
|
|
Set monitor mode via bit mask, meaning:
|
|
|
|
.Bl -tag -offset indent -compact -width 0x000000
|
|
|
|
.Em "Bit Mask Meaning"
|
|
|
|
.It 0
|
|
|
|
to not dump 802.11 packet.
|
|
|
|
.It 1
|
|
|
|
to enable 802.11 monitor.
|
|
|
|
.It 2
|
|
|
|
to monitor any SSID.
|
|
|
|
.It 4
|
|
|
|
to not skip beacons, monitor beacons produces a high system load.
|
|
|
|
.It 8
|
|
|
|
to enable full Aironet header returned via BPF.
|
|
|
|
Note it appears that a SSID must be set.
|
|
|
|
.El
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl r Ar RTS_threshold
|
2000-03-01 14:09:25 +00:00
|
|
|
Set the RTS/CTS threshold for a given interface.
|
|
|
|
This controls the
|
|
|
|
number of bytes used for the RTS/CTS handhake boundary.
|
|
|
|
The
|
2001-09-11 11:12:53 +00:00
|
|
|
.Ar RTS_threshold
|
2000-03-02 14:54:02 +00:00
|
|
|
can be any value between 0 and 2312.
|
|
|
|
The default is 2312.
|
2001-09-11 11:12:53 +00:00
|
|
|
.It Fl i Ar iface Fl M Cm 0 Ns - Ns Cm 15
|
|
|
|
Set monitor mode via bit mask, meaning:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -offset indent -compact
|
|
|
|
.It Em Bit
|
|
|
|
.Em Meaning
|
|
|
|
.It 0
|
|
|
|
to not dump 802.11 packet.
|
|
|
|
.It 1
|
|
|
|
to enable 802.11 monitor.
|
|
|
|
.It 2
|
|
|
|
to monitor any SSID.
|
|
|
|
.It 4
|
|
|
|
to not skip beacons, monitor beacons produces a high system load.
|
|
|
|
.It 8
|
|
|
|
to enable full Aironet header returned via BPF.
|
|
|
|
Note it appears that a SSID must be set.
|
|
|
|
.El
|
2000-01-14 20:41:03 +00:00
|
|
|
.It Fl h
|
2001-09-11 11:12:53 +00:00
|
|
|
Print a list of available options and sample usage.
|
2000-01-14 20:41:03 +00:00
|
|
|
.El
|
2000-12-08 19:02:35 +00:00
|
|
|
.Sh SECURITY NOTES
|
2001-09-11 11:12:53 +00:00
|
|
|
WEP
|
|
|
|
.Pq Dq "wired equivalent privacy"
|
|
|
|
is based on the RC4 algorithm,
|
2000-12-08 19:02:35 +00:00
|
|
|
using a 24 bit initialization vector.
|
|
|
|
.Pp
|
|
|
|
RC4 is supposedly vunerable to certain known plaintext attacks,
|
|
|
|
especially with 40 bit keys.
|
|
|
|
So the security of WEP in part depends on how much known plaintext
|
|
|
|
is transmitted.
|
|
|
|
.Pp
|
2001-09-11 11:12:53 +00:00
|
|
|
Because of this, although counter-intuitive, using
|
|
|
|
.Dq "shared key"
|
2000-12-08 19:02:35 +00:00
|
|
|
authentication (which involves sending known plaintext) is less
|
2001-09-11 11:12:53 +00:00
|
|
|
secure than using
|
|
|
|
.Dq open
|
|
|
|
authentication when WEP is enabled.
|
2000-12-08 19:02:35 +00:00
|
|
|
.Pp
|
|
|
|
Devices may alternate among all of the configured WEP keys when
|
|
|
|
tranmitting packets.
|
|
|
|
Therefore, all configured keys (up to four) must agree.
|
|
|
|
.Sh EXAMPLES
|
2000-12-11 09:42:00 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
ancontrol -i an0 -v 0 -k 0x12345678901234567890123456
|
|
|
|
ancontrol -i an0 -K 2
|
|
|
|
ancontrol -i an0 -W 1
|
|
|
|
ancontrol -i an0 -e 0
|
|
|
|
.Ed
|
2000-12-08 19:02:35 +00:00
|
|
|
.Pp
|
2001-09-11 11:12:53 +00:00
|
|
|
Sets a WEP key 0, enables
|
|
|
|
.Dq "Shared Key"
|
|
|
|
authentication, enables full WEP
|
2000-12-08 19:02:35 +00:00
|
|
|
and uses transmit key 0.
|
2000-01-14 20:41:03 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr an 4 ,
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command first appeared in
|
2000-04-23 16:40:02 +00:00
|
|
|
.Fx 4.0 .
|
2000-01-14 20:41:03 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The statistics counters do not seem to show the amount of transmit
|
2000-03-01 14:09:25 +00:00
|
|
|
and received frames as increasing.
|
|
|
|
This is likely due to the fact that
|
2000-01-14 20:41:03 +00:00
|
|
|
the
|
|
|
|
.Xr an 4
|
|
|
|
driver uses unmodified packet mode instead of letting the NIC perform
|
|
|
|
802.11/ethernet encapsulation itself.
|
|
|
|
.Pp
|
|
|
|
Setting the channel does not seem to have any effect.
|
2000-04-23 16:40:02 +00:00
|
|
|
.Sh AUTHORS
|
2000-01-14 20:41:03 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command was written by
|
|
|
|
.An Bill Paul Aq wpaul@ee.columbia.edu .
|