1.\" $NetBSD: atw.4,v 1.9 2004/07/03 17:36:51 mycroft Exp $ 2.\" 3.\" Copyright (c) 2003 4.\" David Young <dyoung@NetBSD.org>. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the author nor the names of any co-contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY David Young AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL David Young 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28.\" THE POSSIBILITY OF SUCH DAMAGE. 29.\" 30.\" $Id: atw.4,v 1.9 2004/07/03 17:36:51 mycroft Exp $ 31.\" 32.Dd June 5, 2004 33.Dt ATW 4 34.Os 35.Sh NAME 36.Nm atw 37.Nd ADMtek ADM8211 802.11 wireless network driver 38.Sh SYNOPSIS 39.Cd "atw* at cardbus? function ?" 40.Cd "atw* at pci? dev ? function ?" 41.Sh DESCRIPTION 42The 43.Nm 44driver supports PCI/CardBus 802.11b wireless adapters based on the 45ADMtek ADM8211. 46.Pp 47The ADM8211 is a bus-mastering 802.11 Media Access Controller (MAC) 48which is derived from ADMtek's Tulip clones (see 49.Xr tlp 4 ) . 50It supports contention-free traffic (with an 802.11 Point Coordinator), 5164/128-bit WEP encryption, and 802.11 power-saving. 52The ADM8211 integrates an RF3000 baseband processor (BBP) by RF 53Microdevices. 54.Pp 55In a typical application, the ADM8211 is coupled with an RF front-end 56by RFMD and a Silicon Laboratories Si4126 RF/IF synthesizer. 57.Pp 58With the ADM8211, the division of labor between the host and NIC 59is different than with firmware-based NICs such as 60.Xr an 4 , 61.Xr awi 4 , 62and 63.Xr wi 4 . 64The ADM8211 is still responsible for real-time 802.11 functions 65such as sending ACK/RTS/CTS/ATIM frames, sending beacons, and 66answering CF polls from the access point, but the host takes 67responsibility for providing 802.11 functions such as scanning, 68association, and authentication. 69The host is also responsible for programming both the BBP and the 70RF/IF synthesizer. 71.Pp 72.Nm 73contains incomplete support for the ADM8211's WEP encryption/decryption 74engine. 75.Nm 76does not yet support hardware WEP decryption, however, it will use 77the ADM8211's crypto engine to encrypt transmitted frames. 78Documentation from ADMtek claims that, in addition to the 4 128-bit 79shared WEP keys, the ADM8211 will store WEP key pairs for up to 20 80peers. 81The documentation provides no details, hence 82.Nm 83does not support the 20 key-pairs. 84.Pp 85The ADM8211 operates in 802.11 infrastructure mode (with an access 86point) and in 802.11 ad hoc mode (without an access point) at 1, 872, 5.5, and 11Mbps. 88ADMtek says that the ADM8211 cannot operate as an access point. 89.Pp 90The operating mode is selected using the 91.Xr ifconfig 8 92utility. 93For more information on configuring this device, see 94.Xr ifconfig 8 95and 96.Xr ifmedia 4 . 97.Sh HARDWARE 98Cards supported by the 99.Nm 100driver include: 101.Pp 102.Bl -item -offset indent -compact 103.It 104D-Link DWL-650 Rev. ?? CardBus card 105.It 106D-Link DWL-520 Rev. C1 PCI card 107.It 108LanReady WP2000 PCI card 109.It 110TrendNet TEW-221PC CardBus card 111.It 112Xterasys XN2511B PCI card 113.It 114.El 115.Sh DIAGNOSTICS 116.Bl -diag 117.It "atw0: failed to tune channel %d" 118The driver failed to tune the radio to a new channel. 119The radio remains tuned to the old channel. 120.It "atw0: atw_si4136_write wrote %08x, SYNCTL still busy" 121The driver waited 100ms without seeing an indication that the 122ADM8211 had finished writing a register on the Si4126 RF/IF 123synthesizer. 124.It "atw0: device timeout" 125The ADM8211 failed to generate an interrupt to acknowledge a transmit 126command. 127.El 128.Sh SEE ALSO 129.Xr arp 4 , 130.Xr cardbus 4 , 131.Xr ifmedia 4 , 132.Xr netintro 4 , 133.Xr pci 4 , 134.Xr ifconfig 8 135.Rs 136.%T ADMtek 137.%O http://www.admtek.com.tw 138.Re 139.Rs 140.%T Silicon Laboratories 141.%O http://www.silabs.com 142.Re 143.Rs 144.%T RF Microdevicdes 145.%O http://www.rfmd.com 146.Re 147.Sh HISTORY 148The 149.Nm 150device driver first appeared in 151.Nx 2.0 . 152.Sh AUTHORS 153The 154.Nm 155driver was written by 156.An David Young 157.Aq dyoung@NetBSD.org . 158For features which the ADM8211 has in common with the DECchip 21x4x, 159code was liberally borrowed from 160.Xr tlp 4 161by 162.An Jason Thorpe 163.Aq thorpej@NetBSD.org . 164.Sh BUGS 165The author does not fully understand what processing the duration 166fields for the PLCP header and the 802.11 header undergo before 167they are applied to a transmitted frame. 168If the duration fields in transmitted frames are incorrect, the 169performance of your network may suffer. 170.Pp 171The driver does not provide rate control when the media type is 172set to autoselect. 173.Pp 174The driver lets you change to hostap mode, but it does not work 175and it probably never will. 176.Pp 177The driver will sometimes complain that it cannot re-tune the radio 178because the transmit process has not gone idle. 179The author is investigating. 180.Pp 181Many features are still missing, especially WEP decryption and 182802.11 power-saving. 183.Pp 184The ad hoc mode has not been rigorously tested. 185IBSSs with the same SSID may not coalesce, but this should not 186matter for most applications. 187.Pp 188The driver is untested in the ad-hoc demo mode of Lucent WaveLAN 189cards. 190.Pp 191The ADM8211 supports 802.11 power-saving, however, 192.Nm 193does not support it yet. 194For time-bounded service, the ADM8211 will interoperate with an 195access point which implements the 802.11 Point Coordination Function, 196however, this is also not supported. 197.Pp 198Combinations of an ADM8211 with either an Intersil or a Marvell RF 199front-end are not supported. 200