1.\" $OpenBSD: atw.4,v 1.40 2022/02/18 10:24:32 jsg Exp $ 2.\" $NetBSD: atw.4,v 1.8 2004/06/06 04:05:49 wiz Exp $ 3.\" 4.\" Copyright (c) 2003 5.\" David Young <dyoung@NetBSD.org>. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. 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. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY David Young 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 David Young 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. 30.\" 31.Dd $Mdocdate: February 18 2022 $ 32.Dt ATW 4 33.Os 34.Sh NAME 35.Nm atw 36.Nd ADMtek ADM8211 IEEE 802.11b wireless network device 37.Sh SYNOPSIS 38.Cd "atw* at cardbus?" 39.Cd "atw* at pci?" 40.Sh DESCRIPTION 41The 42.Nm 43driver supports PCI/CardBus 802.11b wireless adapters based on the 44ADMtek ADM8211. 45.Pp 46The ADM8211 is a bus-mastering 802.11 Media Access Controller (MAC) 47which is derived from ADMtek's DEC/Intel 21143 clones (see 48.Xr dc 4 49for more information). 50It supports contention-free traffic (with an 802.11 Point Coordinator). 51The ADM8211 integrates an RF3000 baseband processor (BBP) by RF 52Microdevices. 53.Pp 54In a typical application, the ADM8211 is coupled with an RF front-end 55by RFMD and a Silicon Laboratories Si4126 RF/IF synthesizer. 56.Pp 57With the ADM8211, the division of labor between the host and NIC 58is different than with firmware-based NICs such as 59.Xr an 4 60and 61.Xr wi 4 . 62The ADM8211 is still responsible for real-time 802.11 functions 63such as sending ACK/RTS/CTS/ATIM frames, sending beacons, and 64answering CF polls from the access point, but the host takes 65responsibility for providing 802.11 functions such as scanning, 66association, and authentication. 67The host is also responsible for programming both the BBP and the 68RF/IF synthesizer. 69.Pp 70These are the modes the 71.Nm 72driver can operate in: 73.Bl -tag -width "IBSS-masterXX" 74.It BSS mode 75Also known as 76.Em infrastructure 77mode, this is used when associating with an access point, through 78which all traffic passes. 79This mode is the default. 80.It IBSS mode 81Also known as 82.Em IEEE ad-hoc 83mode or 84.Em peer-to-peer 85mode. 86This is the standardized method of operating without an access point. 87Stations associate with a service set. 88However, actual connections between stations are peer-to-peer. 89.El 90.Pp 91The 92.Nm 93driver can be configured to use hardware 94Wired Equivalent Privacy (WEP) 95(though see 96.Sx BUGS , 97below). 98It is strongly recommended that WEP 99not be used as the sole mechanism 100to secure wireless communication, 101due to serious weaknesses in it. 102.Pp 103In BSS mode, 104the driver supports powersave mode, 105which can be enabled via 106.Xr ifconfig 8 . 107.Pp 108The 109.Nm 110driver can be configured at runtime with 111.Xr ifconfig 8 112or on boot with 113.Xr hostname.if 5 . 114.Sh HARDWARE 115The 116.Nm 117driver supports PCI and CardBus cards using revisions 0x11 and 0x15 118of the ADM8211 (aka ADM8211A) and revision 0x20 (aka ADM8211B). 119This includes: 120.Pp 121.Bl -tag -width Ds -offset indent -compact 122.It 3Com OfficeConnect 3CRSHPW796 CardBus 123.It Belkin F5D6001 PCI (version 2 only) 124.It Blitz NetWave Point CardBus 125.It D-Link DWL-650 Rev. \&L1 CardBus 126.It D-Link DWL-520 Rev. \&C1 PCI 127.It LanReady WP2000 PCI 128.It SMC 2635W CardBus (version 1 only) 129.It TRENDnet TEW-221PC CardBus 130.It Xterasys XN2511B PCI 131.El 132.Pp 133The 134.Nm 135driver does not yet support cards using revision 0x30 (ADM8211C). 136.\"This includes: 137.\".Pp 138.\".Bl -tag -width Ds -offset indent -compact 139.\".El 140.Sh EXAMPLES 141The following example scans for available networks: 142.Pp 143.Dl # ifconfig atw0 scan 144.Pp 145The following 146.Xr hostname.if 5 147example configures atw0 to join network 148.Dq mynwid , 149using WEP key 150.Dq mywepkey , 151obtaining an IP address using DHCP: 152.Bd -literal -offset indent 153join mynwid nwkey mywepkey 154inet autoconf 155.Ed 156.Sh DIAGNOSTICS 157.Bl -diag 158.It "atw0: failed to tune channel N" 159The driver failed to tune the radio to a new channel. 160The radio remains tuned to the old channel. 161.It "atw0: atw_si4136_write wrote XXXX, SYNCTL still busy" 162The driver waited 100ms without seeing an indication that the 163ADM8211 had finished writing a register on the Si4126 RF/IF 164synthesizer. 165.It "atw0: device timeout" 166The ADM8211 failed to generate an interrupt to acknowledge a transmit 167command. 168.El 169.Sh SEE ALSO 170.Xr arp 4 , 171.Xr cardbus 4 , 172.Xr ifmedia 4 , 173.Xr intro 4 , 174.Xr netintro 4 , 175.Xr pci 4 , 176.Xr hostname.if 5 , 177.Xr ifconfig 8 178.Rs 179.%T Silicon Laboratories 180.%U https://www.silabs.com 181.Re 182.Sh HISTORY 183The 184.Nm 185device driver first appeared in 186.Ox 3.6 . 187.Sh AUTHORS 188.An -nosplit 189The 190.Nm 191driver was written by 192.An David Young Aq Mt dyoung@NetBSD.org . 193For features which the ADM8211 has in common with the DECchip 21x4x, 194code was liberally borrowed from the 195.Nx 196tlp driver by 197.An Jason Thorpe Aq Mt thorpej@NetBSD.org . 198.Sh BUGS 199The author does not fully understand what processing the duration 200fields for the PLCP header and the 802.11 header undergo before 201they are applied to a transmitted frame. 202If the duration fields in transmitted frames are incorrect, 203network performance may suffer. 204.Pp 205The driver does not provide rate control when the media type is 206set to autoselect. 207.Pp 208The driver will sometimes complain that it cannot re-tune the radio 209because the transmit process has not gone idle. 210The author is investigating. 211.Pp 212Many features are still missing, especially WEP decryption and 213802.11 power-saving. 214.Pp 215The ad-hoc mode has not been rigorously tested. 216IBSSs with the same SSID may not coalesce, but this should not 217matter for most applications. 218.Pp 219The driver is untested in the ad-hoc demo mode of Lucent WaveLAN 220cards. 221.Pp 222The ADM8211 supports 802.11 power-saving; however, 223.Nm 224does not support it yet. 225For time-bounded service, the ADM8211 will interoperate with an 226access point which implements the 802.11 Point Coordination Function; 227however, this is also not supported. 228.Pp 229Combinations of an ADM8211 with either an Intersil or a Marvell RF 230front-end are not supported. 231.Pp 232.Nm 233contains incomplete support for the ADM8211's WEP encryption/decryption 234engine. 235.Nm 236does not yet support hardware WEP decryption; however, it will use 237the ADM8211's crypto engine to encrypt transmitted frames. 238Documentation from ADMtek claims that, in addition to the 4 104-bit 239shared WEP keys, the ADM8211 will store WEP key pairs for up to 20 240peers. 241The documentation provides no details, hence 242.Nm 243does not support the 20 key-pairs. 244