xref: /freebsd/share/man/man4/ath.4 (revision cf8faa800c82f63ee43d8f3e203ffddb8ff3cad3)
1cf8faa80SSam Leffler.\"-
2cf8faa80SSam Leffler.\" Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
3cf8faa80SSam Leffler.\" All rights reserved.
4cf8faa80SSam Leffler.\""
5cf8faa80SSam Leffler.\" Redistribution and use in source and binary forms, with or without
6cf8faa80SSam Leffler.\" modification, are permitted provided that the following conditions
7cf8faa80SSam Leffler.\" are met:
8cf8faa80SSam Leffler.\" 1. Redistributions of source code must retain the above copyright
9cf8faa80SSam Leffler.\"    notice, this list of conditions and the following disclaimer,
10cf8faa80SSam Leffler.\"    without modification.
11cf8faa80SSam Leffler.\" 2. Redistributions in binary form must reproduce at minimum a disclaimer
12cf8faa80SSam Leffler.\"    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13cf8faa80SSam Leffler.\"    redistribution must be conditioned upon including a substantially
14cf8faa80SSam Leffler.\"    similar Disclaimer requirement for further binary redistribution.
15cf8faa80SSam Leffler.\" 3. Neither the names of the above-listed copyright holders nor the names
16cf8faa80SSam Leffler.\"    of any contributors may be used to endorse or promote products derived
17cf8faa80SSam Leffler.\"    from this software without specific prior written permission.
18cf8faa80SSam Leffler.\"
19cf8faa80SSam Leffler.\" NO WARRANTY
20cf8faa80SSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21cf8faa80SSam Leffler.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22cf8faa80SSam Leffler.\" LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
23cf8faa80SSam Leffler.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
24cf8faa80SSam Leffler.\" THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
25cf8faa80SSam Leffler.\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26cf8faa80SSam Leffler.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27cf8faa80SSam Leffler.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
28cf8faa80SSam Leffler.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29cf8faa80SSam Leffler.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30cf8faa80SSam Leffler.\" THE POSSIBILITY OF SUCH DAMAGES.
31cf8faa80SSam Leffler.\"
32cf8faa80SSam Leffler.\" $FreeBSD$
33cf8faa80SSam Leffler.\"/
34cf8faa80SSam Leffler.Dd June 23, 2003
35cf8faa80SSam Leffler.Dt ATH 4
36cf8faa80SSam Leffler.Os
37cf8faa80SSam Leffler.Sh NAME
38cf8faa80SSam Leffler.Nm ath
39cf8faa80SSam Leffler.Nd "Atheros IEEE 802.11 driver"
40cf8faa80SSam Leffler.Sh SYNOPSIS
41cf8faa80SSam Leffler.Cd "device ath"
42cf8faa80SSam Leffler.Sh DESCRIPTION
43cf8faa80SSam LefflerThe
44cf8faa80SSam Leffler.Nm
45cf8faa80SSam Lefflerdriver provides support for wireless network adapters based on
46cf8faa80SSam Lefflerthe Atheros AR5210, AR5211, and AR5212 chips.
47cf8faa80SSam LefflerChip-specific support is provided by the Atheros Hardware Access Layer
48cf8faa80SSam Leffler(HAL), that is packaged separately.
49cf8faa80SSam Leffler.Pp
50cf8faa80SSam LefflerSupported features include 802.11 and 802.3 frames, power management, BSS,
51cf8faa80SSam LefflerIBSS, and host-based access point operation modes.
52cf8faa80SSam LefflerAll host/device interaction is via DMA.
53cf8faa80SSam Leffler.Pp
54cf8faa80SSam LefflerThe
55cf8faa80SSam Leffler.Nm
56cf8faa80SSam Lefflerdriver encapsulates all IP and ARP traffic as 802.11 frames, however
57cf8faa80SSam Lefflerit can receive either 802.11 or 802.3 frames.
58cf8faa80SSam LefflerTransmit speed and operating mode is selectable
59cf8faa80SSam Lefflerdepending on your hardware.
60cf8faa80SSam LefflerAR5210-based devices support 802.11a operation with trasmit speeds
61cf8faa80SSam Lefflerof 6 Mbps, 9 Mbps, 12 Mbps, 18 Mbps, 24 Mbps, 36 Mbps, 48 Mbps, and 54 Mbps.
62cf8faa80SSam LefflerAR5211-based devices support 802.11a and 802.11b operation with transmit
63cf8faa80SSam Lefflerspeeds as above for 802.11a operation and
64cf8faa80SSam Leffler1Mbps, 2Mbps, 5.5 Mbps and 11Mbps for 802.11b operation.
65cf8faa80SSam LefflerAR5212-based devices support 802.11a, 802.11b, and 802.11g operation
66cf8faa80SSam Lefflerwith transmit speeds appropriate to each.
67cf8faa80SSam LefflerAll chips also support an Atheros Turbo Mode (TM) that operates in the 802.11a frequency range with 2x the transmit speeds.
68cf8faa80SSam Leffler(This mode is, however, only interoperable with other Atheros-based devices.)
69cf8faa80SSam LefflerThe actual transmit speed used is dependent on signal quality and the
70cf8faa80SSam Leffler``rate control'' algorithm employed by the driver.
71cf8faa80SSam LefflerAll chips support WEP encryption.
72cf8faa80SSam LefflerAR5211 and AR5212 support the AES, TKIP, and Michael cryptographic
73cf8faa80SSam Leffleroperations required for WPA but at this time the driver does support them.
74cf8faa80SSam LefflerTo enable encryption, use
75cf8faa80SSam Leffler.Xr ifconfig 8
76cf8faa80SSam Leffleras shown below.
77cf8faa80SSam Leffler.Pp
78cf8faa80SSam LefflerBy default, the
79cf8faa80SSam Leffler.Nm
80cf8faa80SSam Lefflerdriver configures the card for BSS operation (aka infrastructure
81cf8faa80SSam Lefflermode).
82cf8faa80SSam LefflerThis mode requires the use of an access point (base station).
83cf8faa80SSam Leffler.Pp
84cf8faa80SSam LefflerThe
85cf8faa80SSam Leffler.Nm
86cf8faa80SSam Lefflerdriver also supports the standard IBSS point-to-point mode
87cf8faa80SSam Lefflerwhere stations can communicate amongst themselves without the
88cf8faa80SSam Leffleraid of an access point.
89cf8faa80SSam Leffler.Pp
90cf8faa80SSam LefflerThe driver may also be configured to operate in hostap mode.
91cf8faa80SSam LefflerIn this mode a host may function as an access point (base station).
92cf8faa80SSam LefflerAccess points are different than operating in IBSS mode.
93cf8faa80SSam LefflerThey operate in BSS mode.
94cf8faa80SSam LefflerThey allow for easier roaming and bridge all ethernet traffic such
95cf8faa80SSam Lefflerthat machines connected via an access point appear to be on the local
96cf8faa80SSam Lefflerethernet segment.
97cf8faa80SSam Leffler.Pp
98cf8faa80SSam LefflerFor more information on configuring this device, see
99cf8faa80SSam Leffler.Xr ifconfig 8 .
100cf8faa80SSam Leffler.Pp
101cf8faa80SSam LefflerDevices supported by the
102cf8faa80SSam Leffler.Nm
103cf8faa80SSam Lefflerdriver come in either Cardbus or mini-PCI packages.
104cf8faa80SSam LefflerWireless cards in Cardbus slots may be inserted and ejected on the fly.
105cf8faa80SSam Leffler.Pp
106cf8faa80SSam LefflerThe following cards are among those supported by the
107cf8faa80SSam Leffler.Nm
108cf8faa80SSam Lefflerdriver:
109cf8faa80SSam Leffler.Pp
110cf8faa80SSam Leffler.Bl -column -compact "D-Link DWL-AG650" "AR5212" "Cardbus"
111cf8faa80SSam Leffler.Em "Card	Chip	Bus"
112cf8faa80SSam LefflerD-Link DWL-AB650	AR5211	Cardbus
113cf8faa80SSam LefflerD-Link DWL-AG520	AR5212	Cardbus
114cf8faa80SSam LefflerD-Link DWL-AG650	AR5212	PCI
115cf8faa80SSam LefflerLinksys WMP55AG	AR5212	Cardbus
116cf8faa80SSam LefflerLinksys WPC51AB	AR5211	Cardbus
117cf8faa80SSam LefflerLinksys WPC55AG	AR5212	PCI
118cf8faa80SSam LefflerNetgear WAB501	AR5211	Cardbus
119cf8faa80SSam LefflerNetgear WAG511	AR5212	Cardbus
120cf8faa80SSam Leffler.El
121cf8faa80SSam Leffler.Sh EXAMPLES
122cf8faa80SSam LefflerJoin an existing BSS network (ie: connect to an access point):
123cf8faa80SSam Leffler.Pp
124cf8faa80SSam Leffler.Dl "ifconfig ath0 inet 192.168.0.20 netmask 0xffffff00"
125cf8faa80SSam Leffler.Pp
126cf8faa80SSam LefflerJoin a specific BSS network with network name
127cf8faa80SSam Leffler.Dq Li my_net :
128cf8faa80SSam Leffler.Pp
129cf8faa80SSam Leffler.Dl "ifconfig ath0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net"
130cf8faa80SSam Leffler.Pp
131cf8faa80SSam LefflerJoin a specific BSS network with WEP encryption:
132cf8faa80SSam Leffler.Bd -literal -offset indent
133cf8faa80SSam Lefflerifconfig ath0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
134cf8faa80SSam Leffler	wepmode on wepkey 0x8736639624
135cf8faa80SSam Leffler.Ed
136cf8faa80SSam Leffler.Pp
137cf8faa80SSam LefflerJoin/create an 802.11b IBSS network with network name
138cf8faa80SSam Leffler.Dq Li my_net :
139cf8faa80SSam Leffler.Bd -literal -offset indent
140cf8faa80SSam Lefflerifconfig ath0 inet 192.168.0.22 netmask 0xffffff00 ssid my_net \e
141cf8faa80SSam Leffler	mode 11b mediaopt adhoc
142cf8faa80SSam Leffler.Ed
143cf8faa80SSam Leffler.Pp
144cf8faa80SSam LefflerCreate an 802.11g host-based access point:
145cf8faa80SSam Leffler.Bd -literal -offset indent
146cf8faa80SSam Lefflerifconfig ath0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
147cf8faa80SSam Leffler	mode 11g mediaopt hostap
148cf8faa80SSam Leffler.Ed
149cf8faa80SSam Leffler.Pp
150cf8faa80SSam LefflerCreate an 802.11a host-based access point with WEP enabled:
151cf8faa80SSam Leffler.Bd -literal -offset indent
152cf8faa80SSam Lefflerifconfig ath0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
153cf8faa80SSam Leffler	wepmode on wepkey 0x1234567890 mode 11a mediaopt hostap
154cf8faa80SSam Leffler.Ed
155cf8faa80SSam Leffler.Pp
156cf8faa80SSam LefflerCreate a host-based wireless bridge to fxp0:
157cf8faa80SSam Leffler.Bd -literal -offset indent
158cf8faa80SSam LefflerAdd BRIDGE to the kernel config.
159cf8faa80SSam Lefflerifconfig ath0 inet up ssid my_ap media DS/11Mbps mediaopt hostap
160cf8faa80SSam Lefflersysctl net.link.ether.bridge=1
161cf8faa80SSam Lefflersysctl net.link.ether.bridge_cfg="ath0 fxp0"
162cf8faa80SSam Lefflersysctl net.inet.ip.forwarding=1
163cf8faa80SSam Leffler.Ed
164cf8faa80SSam Leffler.Pp
165cf8faa80SSam LefflerThis will give you the same functionality as an access point.
166cf8faa80SSam Leffler.Sh DIAGNOSTICS
167cf8faa80SSam Leffler.Bl -diag
168cf8faa80SSam Leffler.It "ath%d: unable to attach hardware; HAL status %u"
169cf8faa80SSam LefflerThe Atheros Hardware Access Layer was unable to configure the hardware
170cf8faa80SSam Leffleras requested.
171cf8faa80SSam LefflerThe status code is explained in the HAL include file
172cf8faa80SSam Leffler.Pa sys/contrib/dev/ath/ah.h .
173cf8faa80SSam Leffler.It "ath%d: failed to allocate descriptors: %d"
174cf8faa80SSam LefflerThe driver was unable to allocate contiguous memory for the transmit
175cf8faa80SSam Lefflerad receive descriptors.
176cf8faa80SSam LefflerThis usually indicates system memory is scarce and/or fragmented.
177cf8faa80SSam Leffler.It "ath%d: unable to setup a data xmit queue!"
178cf8faa80SSam LefflerThe request to the HAL to setup the transmit queue for normal
179cf8faa80SSam Lefflerdata frames failed.
180cf8faa80SSam LefflerThis should not happen.
181cf8faa80SSam Leffler.It "ath%d: unable to setup a beacon xmit queue!"
182cf8faa80SSam LefflerThe request to the HAL to setup the transmit queue for 802.11 beacon frames
183cf8faa80SSam Lefflerframes failed.
184cf8faa80SSam LefflerThis should not happen.
185cf8faa80SSam Leffler.It "ath%d: 802.11 address: %s"
186cf8faa80SSam LefflerThe MAC address programmed in the EEPROM is displayed.
187cf8faa80SSam Leffler.It "ath%d: hardware error; resetting"
188cf8faa80SSam LefflerA nunrecoverable error in the hardware occurred.
189cf8faa80SSam LefflerErrors of this sort include unrecoverable DMA errors.
190cf8faa80SSam LefflerThe driver will reset the hardware and continue.
191cf8faa80SSam Leffler.It "ath%d: rx FIFO overrun; resetting"
192cf8faa80SSam LefflerThe receive FIFO in the hardware overflowed before the data could be
193cf8faa80SSam Lefflertransferred to the host.
194cf8faa80SSam LefflerThis typically occurs because the hardware ran short of receive
195cf8faa80SSam Lefflerdescriptors and had no place to transfer received data.
196cf8faa80SSam LefflerThe driver will reset the hardware and continue.
197cf8faa80SSam Leffler.It "ath%d: unable to reset hardware; hal status %u"
198cf8faa80SSam LefflerThe Atheros Hardware Access Layer was unable to reset the hardware
199cf8faa80SSam Leffleras requested.
200cf8faa80SSam LefflerThe status code is explained in the HAL include file
201cf8faa80SSam Leffler.Pa sys/contrib/dev/ath/ah.h .
202cf8faa80SSam LefflerThis should not happen.
203cf8faa80SSam Leffler.It "ath%d: unable to start recv logic"
204cf8faa80SSam LefflerThe driver was unable to restart frame reception.
205cf8faa80SSam LefflerThis should not happen.
206cf8faa80SSam Leffler.It "ath%d: device timeout"
207cf8faa80SSam LefflerA frame dispatched to the hardware for transmission did not complete in time.
208cf8faa80SSam LefflerThe driver will reset the hardware and continue.
209cf8faa80SSam LefflerThis should not hapen.
210cf8faa80SSam Leffler.It "ath%d: bogus xmit rate 0x%x"
211cf8faa80SSam LefflerAn invalid transmit rate was specified for an outgoing frame.
212cf8faa80SSam LefflerThe frame is discarded.
213cf8faa80SSam LefflerThis should not happen.
214cf8faa80SSam Leffler.It "ath%d: ath_chan_set: unable to reset channel %u (%u Mhz)"
215cf8faa80SSam LefflerThe Atheros Hardware Access Layer was unable to reset the hardware
216cf8faa80SSam Lefflerwhen switching channels during scanning.
217cf8faa80SSam LefflerThis should not happen.
218cf8faa80SSam Leffler.It "ath%d: unable to allocate channel table"
219cf8faa80SSam LefflerThe driver was unable to allocate memory for the table used to hold
220cf8faa80SSam Lefflerthe set of available channels.
221cf8faa80SSam Leffler.It "ath%d: unable to collect channel list from hal"
222cf8faa80SSam LefflerA problem occurred while querying the HAL to find the set of available
223cf8faa80SSam Lefflerchannels for the device.
224cf8faa80SSam LefflerThis should not happen.
225cf8faa80SSam Leffler.It "ath%d: %s: %dM -> %dM (%d ok, %d err, %d retr)"
226cf8faa80SSam LefflerThe driver's rate control algorithm changed the current rate for transmitting
227cf8faa80SSam Lefflerframes.
228cf8faa80SSam LefflerThis message is temporarily enabled for normal use to help in diagnosing
229cf8faa80SSam Lefflerand improving the rate control algorithm.
230cf8faa80SSam LefflerThe message indicates the new and old transmit rates and the statistics
231cf8faa80SSam Lefflerit used to decide on this change.
232cf8faa80SSam Leffler.It "ath%d: failed to enable memory mapping"
233cf8faa80SSam LefflerThe driver was unable to enable memory-mapped I/O to the PCI device registers.
234cf8faa80SSam LefflerThis should not happen.
235cf8faa80SSam Leffler.It "ath%d: failed to enable bus mastering"
236cf8faa80SSam LefflerThe driver was unable to enable the device as a PCI bus master for doing DMA.
237cf8faa80SSam LefflerThis should not happen.
238cf8faa80SSam Leffler.It "ath%d: cannot map register space"
239cf8faa80SSam LefflerThe driver was unable to map the device registers into the host address space.
240cf8faa80SSam LefflerThis should not happen.
241cf8faa80SSam Leffler.It "ath%d: could not map interrupt"
242cf8faa80SSam LefflerThe driver was unable to allocate an IRQ for the device interrupt.
243cf8faa80SSam LefflerThis should not happen.
244cf8faa80SSam Leffler.It "ath%d: could not establish interrupt"
245cf8faa80SSam LefflerThe driver was unable to install the device interrupt handler.
246cf8faa80SSam LefflerThis should not happen.
247cf8faa80SSam Leffler.El
248cf8faa80SSam Leffler.Sh SEE ALSO
249cf8faa80SSam Leffler.Xr an 4 ,
250cf8faa80SSam Leffler.Xr arp 4 ,
251cf8faa80SSam Leffler.Xr ath_hal 4,
252cf8faa80SSam Leffler.Xr card 4 ,
253cf8faa80SSam Leffler.Xr netintro 4 ,
254cf8faa80SSam Leffler.Xr pcic 4 ,
255cf8faa80SSam Leffler.Xr wi 4 ,
256cf8faa80SSam Leffler.Xr wlan 4 ,
257cf8faa80SSam Leffler.Xr ifconfig 8 ,
258cf8faa80SSam Leffler.Xr wicontrol 8
259cf8faa80SSam Leffler.Re
260cf8faa80SSam Leffler.Sh HISTORY
261cf8faa80SSam LefflerThe
262cf8faa80SSam Leffler.Nm
263cf8faa80SSam Lefflerdevice driver first appeared in
264cf8faa80SSam Leffler.Fx 5.2 .
265cf8faa80SSam Leffler.Sh CAVEATS
266cf8faa80SSam LefflerDifferent regulatory domains have different default channels for adhoc
267cf8faa80SSam Lefflermode.
268cf8faa80SSam LefflerSee
269cf8faa80SSam Leffler.Xr ifconfig 8
270cf8faa80SSam Lefflerfor information on how to change the channel.
271cf8faa80SSam LefflerSee
272cf8faa80SSam Leffler.Xr wicontrol 8
273cf8faa80SSam Lefflerfor information on different regulatory domains.
274cf8faa80SSam Leffler.Pp
275cf8faa80SSam Leffler802.11g support is little tested and may have interoperabity problems.
276cf8faa80SSam LefflerThe software is known to function with an Atheros 11g access point but
277cf8faa80SSam Lefflerinteroperability may be problematic until vendors update firmware in
278cf8faa80SSam Lefflerexisting 11g products.
279cf8faa80SSam LefflerIf you encounter problems using an 11g access point you should be able
280cf8faa80SSam Lefflerto workaround incompatibilities by locking the driver to 11b mode.
281cf8faa80SSam LefflerAlternatively, most 11g compatibility issues are in the 802.11 layer
282cf8faa80SSam Lefflerand you may be able to workaround issues by modifying the
283cf8faa80SSam Leffler.Xr wlan 4
284cf8faa80SSam Lefflermodule.
285cf8faa80SSam Leffler.Pp
286cf8faa80SSam LefflerAtheros Turbo mode is untested.
287cf8faa80SSam Leffler.Sh BUGS
288cf8faa80SSam Leffler.Pp
289cf8faa80SSam LefflerRoaming mode is broken.
290cf8faa80SSam LefflerIf you lose your access point by going out of
291cf8faa80SSam Lefflerrange the driver does not automaticaly re-associate.
292cf8faa80SSam Leffler.Pp
293cf8faa80SSam LefflerAdhoc mode is untested and possibly/probably broken.
294cf8faa80SSam Leffler.Pp
295cf8faa80SSam LefflerPerformance in lossy environments is suboptimal.
296cf8faa80SSam LefflerThe algorithm used to select the rate for transmitted packets is
297cf8faa80SSam Lefflervery simplistic.
298cf8faa80SSam LefflerThere is no software retransmit; only hardware retransmit is used.
299cf8faa80SSam LefflerContributors are encouraged to replace the existing rate control algorithm
300cf8faa80SSam Lefflerwith a better one (hint: all the information needed is availble to the driver).
301cf8faa80SSam Leffler.Pp
302cf8faa80SSam LefflerGeneral performance is suboptimal.
303cf8faa80SSam LefflerThe Atheros hardware is known to be capable of transfer rates of 23-34 Mb/s
304cf8faa80SSam Leffler(or more) in 11a and 11g modes using their NDIS (aka Windows) driver.
305cf8faa80SSam LefflerResults with this driver are mixed and seem to vary significantly.
306cf8faa80SSam Leffler.Pp
307cf8faa80SSam LefflerIt has been observed that getting a DHCP address sometimes requires
308cf8faa80SSam Lefflermultiple tries.
309cf8faa80SSam LefflerThis seems to happen only with AR5211 and AR5212 parts and mostly
310cf8faa80SSam Lefflerin a noisy environment (i.e. one where many access points are found).
311cf8faa80SSam LefflerThis problem is specific to the driver and not the hardware.
312cf8faa80SSam Leffler.Pp
313cf8faa80SSam LefflerThe driver does not fully enable power-save operation of the chip;
314cf8faa80SSam Lefflerconsequently power use is suboptimal.
315