1 .\" Copyright (c) 1997, 1998, 1999
2 .\" Bill Paul <wpaul@ee.columbia.edu> All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by Bill Paul.
15 .\" 4. Neither the name of the author nor the names of any co-contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul 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 Bill Paul OR THE VOICES IN HIS HEAD
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 .\" THE POSSIBILITY OF SUCH DAMAGE.
31 .\" $FreeBSD: src/usr.sbin/ancontrol/ancontrol.8,v 1.3.2.17 2003/02/01 03:25:12 ambrisko Exp $
32 .\" $DragonFly: src/usr.sbin/ancontrol/ancontrol.8,v 1.3 2006/02/17 19:40:10 swildner Exp $
34 .Dd September 10, 1999
39 .Nd configure Aironet 4500/4800 devices
60 .Fl i Ar iface Fl t Cm 0 Ns - Ns Cm 4
62 .Fl i Ar iface Fl s Cm 0 Ns - Ns Cm 3
65 .Op Fl v Cm 1 Ns - Ns Cm 4
68 .Fl i Ar iface Fl b Ar beacon_period
72 .Fl d Cm 0 Ns - Ns Cm 3
74 .Fl i Ar iface Fl e Cm 0 Ns - Ns Cm 4
77 .Op Fl v Cm 0 Ns - Ns Cm 8
81 .Fl K Cm 0 Ns - Ns Cm 2
84 .Fl W Cm 0 Ns - Ns Cm 2
89 .Fl i Ar iface Fl j Ar netjoin_timeout
91 .Fl i Ar iface Fl l Ar station_name
93 .Fl i Ar iface Fl m Ar mac_address
96 .Op Fl v Cm 1 Ns - Ns Cm 3
99 .Fl i Ar iface Fl o Cm 0 | 1
101 .Fl i Ar iface Fl p Ar tx_power
103 .Fl i Ar iface Fl c Ar frequency
105 .Fl i Ar iface Fl f Ar fragmentation_threshold
107 .Fl i Ar iface Fl r Ar RTS_threshold
109 .Fl i Ar iface Fl M Cm 0 Ns - Ns Cm 15
115 utility controls the operation of Aironet wireless networking
119 Most of the parameters that can be changed relate to the
120 IEEE 802.11 protocol which the Aironet cards implement.
121 This includes such things as
122 the station name, whether the station is operating in ad-hoc (point
123 to point) or infrastructure mode, and the network name of a service
127 utility can also be used to view the current NIC status, configuration
128 and to dump out the values of the card's statistics counters.
134 should be the logical interface name associated with the Aironet
138 If one isn't specified the device
144 utility is not designed to support the combination of arguments from different
148 invocation, and such combinations are not recommended.
150 The options are as follows:
151 .Bl -tag -width indent
152 .It Fl i Ar iface Fl A
153 Display the preferred access point list.
154 The AP list can be used by
155 stations to specify the MAC address of access points with which it
157 If no AP list is specified (the default) then
158 the station will associate with the first access point that it finds
159 which serves the SSID(s) specified in the SSID list.
164 .It Fl i Ar iface Fl N
165 Display the SSID list.
166 This is a list of service set IDs (i.e., network names)
167 with which the station wishes to associate.
168 There may be up to three SSIDs
169 in the list: the station will go through the list in ascending order and
170 associate with the first matching SSID that it finds.
171 .It Fl i Ar iface Fl S
172 Display NIC status information.
173 This includes the current operating
174 status, current BSSID, SSID, channel, beacon period and currently
175 associated access point.
176 The operating mode indicates the state of
177 the NIC, MAC status and receiver status.
181 appears, it means the NIC has successfully associated with an access
182 point, associated with an ad-hoc
187 The beacon period can be anything between 20 and 976 milliseconds.
189 .It Fl i Ar iface Fl I
190 Display NIC capability information.
191 This shows the device type,
192 frequency, speed and power level capabilities and firmware revision levels.
193 .It Fl i Ar iface Fl T
194 Display the NIC's internal statistics counters.
195 .It Fl i Ar iface Fl C
196 Display current NIC configuration.
197 This shows the current operation mode,
198 receive mode, MAC address, power save settings, various timing settings,
199 channel selection, diversity, transmit power and transmit speed.
200 .It Fl i Ar iface Fl Q
201 Display the cached signal strength information maintained by the
204 The driver retains information about signal strength and
205 noise level for packets received from different hosts.
206 The signal strength and noise level values are displayed in units of dBms by
209 .Va machdep.an_cache_mode
211 variable can be set to
215 .It Fl i Ar iface Fl Z
216 Clear the signal strength cache maintained internally by the
219 .It Fl i Ar iface Fl R
220 Display RSSI map that converts from the RSSI index to percent and dBm.
221 .It Fl i Ar iface Fl t Cm 0 Ns - Ns Cm 4
222 Select transmit speed.
223 The available settings are as follows:
224 .Bl -column ".Em TX rate" -offset indent
225 .Em "TX rate NIC speed"
226 .It Cm 0 Ta "Auto -- NIC selects optimal speed"
227 .It Cm 1 Ta "1Mbps fixed"
228 .It Cm 2 Ta "2Mbps fixed"
229 .It Cm 3 Ta "5.5Mbps fixed"
230 .It Cm 4 Ta "11Mbps fixed"
233 Note that the 5.5 and 11Mbps settings are only supported on the 4800
234 series adapters: the 4500 series adapters have a maximum speed of 2Mbps.
235 .It Fl i Ar iface Fl s Cm 0 Ns - Ns Cm 3
237 Valid selections are as follows:
238 .Bl -column ".Em Selection" -offset indent
239 .Em "Selection Power save mode"
240 .It Cm 0 Ta "None - power save disabled"
241 .It Cm 1 Ta "Constantly awake mode (CAM)"
242 .It Cm 2 Ta "Power Save Polling (PSP)"
243 .It Cm 3 Ta "Fast Power Save Polling (PSP-CAM)"
246 Note that for IBSS (ad-hoc) mode, only PSP mode is supported, and only
247 if the ATIM window is non-zero.
248 .It Fl i Ar iface Oo Fl v Cm 1 Ns - Ns Cm 4 Oc Fl a Ar AP
249 Set preferred access point.
252 is specified as a MAC address consisting of 6 hexadecimal values
256 option only sets the first entry in the AP list.
259 modifier can be used to specify exactly which AP list entry is to be
263 flag is not used, the first AP list entry will be changed.
264 .It Fl i Ar iface Fl b Ar beacon_period
265 Set the ad-hoc mode beacon period.
268 is specified in milliseconds.
269 The default is 100ms.
270 .It Fl i Ar iface Oo Fl v Cm 0 | 1 Oc Fl d Cm 0 Ns - Ns Cm 3
271 Select the antenna diversity.
272 Aironet devices can be configured with up
273 to two antennas, and transmit and receive diversity can be configured
275 Valid selections are as follows:
276 .Bl -column ".Em Selection" -offset indent
277 .Em "Selection Diversity"
278 .It Cm 0 Ta "Select factory default diversity"
279 .It Cm 1 Ta "Antenna 1 only"
280 .It Cm 2 Ta "Antenna 2 only"
281 .It Cm 3 Ta "Antenna 1 and 2"
284 The receive and transmit diversity can be set independently.
286 must specify which diversity setting is to be modified by using the
290 sets the receive diversity and
292 sets the transmit diversity.
293 .It Fl i Ar iface Fl e Cm 0 Ns - Ns Cm 4
294 Set the transmit WEP key to use.
295 Note that until this command is issued, the device will use the
297 The transmit key is stored in NVRAM.
299 set transmit key can be checked via
305 .Dq "Home Network Mode"
306 and uses the home key.
307 .It Fl i Ar iface Oo Fl v Cm 0 Ns - Ns Cm 8 Oc Fl k Ar key
309 For 40 bit prefix 10 hex character with 0x.
310 For 128 bit prefix 26 hex character with 0x.
313 as the key to erase the key.
314 Supports 4 keys; even numbers are for permanent keys
315 and odd number are for temporary keys.
318 sets the first temporary key.
321 key is stored in NVRAM; a
324 Note that the device will use the most recently-programmed key by default.
325 Currently set keys can be checked via
327 option, only the sizes of the
332 Note that the value for the home key can be read back from firmware.
333 .It Fl i Ar iface Fl K Cm 0 Ns - Ns Cm 2
334 Set authorization type.
344 .It Fl i Ar iface Fl W Cm 0 Ns - Ns Cm 2
353 .It Fl i Ar iface Fl L Ar user_name
354 Enable LEAP and query for password.
355 It will check to see if it has authenticated for up to 60s.
356 To disable LEAP, set WEP mode.
357 .It Fl i Ar iface Fl j Ar netjoin_timeout
358 Set the ad-hoc network join timeout.
359 When a station is first activated
360 in ad-hoc mode, it will search out a
362 station with the desired
363 SSID and associate with it.
364 If the station is unable to locate another
365 station with the same SSID after a suitable timeout, it sets itself up
368 so that other stations may associate with it.
370 timeout defaults to 10000 milliseconds (10 seconds) but may be changed
372 The timeout should be specified in milliseconds.
373 .It Fl i Ar iface Fl l Ar station_name
374 Set the station name used internally by the NIC.
377 can be any text string up to 16 characters in length.
379 is set by the driver to
381 .It Fl i Ar iface Fl m Ar mac_address
382 Set the station address for the specified interface.
385 is specified as a series of six hexadecimal values separated by colons,
387 .Li 00:60:1d:12:34:56 .
388 This programs the new address into the card
389 and updates the interface as well.
390 .It Fl i Ar iface Oo Fl v Cm 1 Ns - Ns Cm 3 Oc Fl n Ar SSID
391 Set the desired SSID (network name).
392 There are three SSIDs which allows
393 the NIC to work with access points at several locations without needing
395 The NIC checks each SSID in sequence when searching
397 The SSID to be changed can be specified with the
402 flag isn't used, the first SSID in the list is set.
403 .It Fl i Ar iface Fl o Cm 0 | 1
404 Set the operating mode of the Aironet interface.
409 for infrastructure mode.
410 The default driver setting is for infrastructure
412 .It Fl i Ar iface Fl p Ar tx_power
413 Set the transmit power level in milliwatts.
415 vary depending on the actual NIC and can be viewed by dumping the
416 device capabilities with the
419 Typical values are 1, 5, 20, 50 and 100mW.
422 .It Fl i Ar iface Fl c Ar frequency
423 Set the radio frequency of a given interface.
426 should be specified as a channel ID as shown in the table below.
428 list of available frequencies is dependent on radio regulations specified
429 by regional authorities.
430 Recognized regulatory authorities include
431 the FCC (United States), ETSI (Europe), France and Japan.
433 in the table are specified in MHz.
434 .Bl -column ".Em Channel ID" ".Em FCC" ".Em ETSI" ".Em France" ".Em Japan" -offset indent
435 .Em "Channel ID FCC ETSI France Japan"
436 .It Cm 1 Ta 2412 Ta 2412 Ta - Ta -
437 .It Cm 2 Ta 2417 Ta 2417 Ta - Ta -
438 .It Cm 3 Ta 2422 Ta 2422 Ta - Ta -
439 .It Cm 4 Ta 2427 Ta 2427 Ta - Ta -
440 .It Cm 5 Ta 2432 Ta 2432 Ta - Ta -
441 .It Cm 6 Ta 2437 Ta 2437 Ta - Ta -
442 .It Cm 7 Ta 2442 Ta 2442 Ta - Ta -
443 .It Cm 8 Ta 2447 Ta 2447 Ta - Ta -
444 .It Cm 9 Ta 2452 Ta 2452 Ta - Ta -
445 .It Cm 10 Ta 2457 Ta 2457 Ta 2457 Ta -
446 .It Cm 11 Ta 2462 Ta 2462 Ta 2462 Ta -
447 .It Cm 12 Ta - Ta 2467 Ta 2467 Ta -
448 .It Cm 13 Ta - Ta 2472 Ta 2472 Ta -
449 .It Cm 14 Ta - Ta - Ta - Ta 2484
452 If an illegal channel is specified, the
453 NIC will revert to its default channel.
454 For NICs sold in the United States
455 and Europe, the default channel is 3.
456 For NICs sold in France, the default
458 For NICs sold in Japan, the only available channel is 14.
459 Note that two stations must be set to the same channel in order to
461 .It Fl i Ar iface Fl f Ar fragmentation_threshold
462 Set the fragmentation threshold in bytes.
463 This threshold controls the
464 point at which outgoing packets will be split into multiple fragments.
465 If a single fragment is not sent successfully, only that fragment will
466 need to be retransmitted instead of the whole packet.
468 threshold can be anything from 64 to 2312 bytes.
470 .It Fl i Ar iface Fl r Ar RTS_threshold
471 Set the RTS/CTS threshold for a given interface.
473 number of bytes used for the RTS/CTS handshake boundary.
476 can be any value between 0 and 2312.
478 .It Fl i Ar iface Fl M Cm 0 Ns - Ns Cm 15
479 Set monitor mode via bit mask, meaning:
481 .Bl -tag -width indent -offset indent -compact
485 to not dump 802.11 packet.
487 to enable 802.11 monitor.
491 to not skip beacons, monitor beacons produces a high system load.
493 to enable full Aironet header returned via BPF.
494 Note it appears that a SSID must be set.
497 Print a list of available options and sample usage.
501 .Pq Dq "wired equivalent privacy"
502 is based on the RC4 algorithm,
503 using a 24 bit initialization vector.
505 RC4 is supposedly vulnerable to certain known plaintext attacks,
506 especially with 40 bit keys.
507 So the security of WEP in part depends on how much known plaintext
510 Because of this, although counter-intuitive, using
512 authentication (which involves sending known plaintext) is less
515 authentication when WEP is enabled.
517 Devices may alternate among all of the configured WEP keys when
518 transmitting packets.
519 Therefore, all configured keys (up to four) must agree.
521 .Bd -literal -offset indent
522 ancontrol -i an0 -v 0 -k 0x12345678901234567890123456
523 ancontrol -i an0 -K 2
524 ancontrol -i an0 -W 1
525 ancontrol -i an0 -e 0
528 Sets a WEP key 0, enables
530 authentication, enables full WEP
531 and uses transmit key 0.
538 utility first appeared in
543 utility was written by
544 .An Bill Paul Aq wpaul@ee.columbia.edu .
546 The statistics counters do not seem to show the amount of transmit
547 and received frames as increasing.
548 This is likely due to the fact that
551 driver uses unmodified packet mode instead of letting the NIC perform
552 802.11/ethernet encapsulation itself.
554 Setting the channel does not seem to have any effect.