AWI(4) OpenBSD Programmer's Manual AWI(4) NAME awi - BayStack 650 IEEE 802.11FH PCMCIA wireless network device SYNOPSIS awi* at pcmcia? DESCRIPTION The awi driver provides support for wireless adapters based upon the AMD 802.11 PCnet Mobile firmware. The PCnet Mobile design is based on an AMD 79c930 controller, which provides access to 32kb of memory shared between the controller and the host. All host/device interaction is via this shared memory, which can be accessed either via PCMCIA memory space or I/O space. The awi driver encapsulates all IP and ARP traffic as 802.11 frames. Transmit speed is fixed at 1Mbps. This card seems to take between 5 and 20 seconds after it has been brought up to synchronize with an AP. When using dhclient(8) to automat- ically configure an address on this card, it may be advisable to delay the invocation of dhclient for about 10 seconds after the card is brought up using ifconfig(8). These are the modes the awi driver can operate in: BSS mode Also known as infrastructure mode, this is used when asso- ciating with an access point, through which all traffic passes. This is the only mode available for this card. CONFIGURATION The awi driver can be configured at runtime with ifconfig(8) or on boot with hostname.if(5) using the following parameters: bssid bssid Set the desired BSSID. -bssid Unset the desired BSSID. The interface will automatically select a BSSID in this mode, which is the default. chan n Set the channel (radio frequency) to be used by the driver based on the given channel ID n. -chan Unset the desired channel to be used by the driver. The driver will automatically select a channel in this mode, which is the default. media media The awi driver supports the following media types: autoselect Enable autoselection of the media type and options. FH1 Set legacy 802.11 FH 1Mbps operation. nwid id Set the network ID. The id can either be any text string up to 32 characters in length, or a series of hexadecimal digits up to 64 digits. An empty id string allows the interface to connect to any available access points. By default the awi driver uses an empty string. Note that network ID is synonymous with Extended Service Set ID (ESSID). -nwid Set the network ID to the empty string to allow the interface to connect to any available access point. HARDWARE The following adapters are known to be supported: AMD Am79C930 Bay Networks BayStack 650 Bay Networks BayStack 660 Bay Network AirSurfer Pro Farallon Communications SkyLINE Wireless Icom SL-200 Nokia C020 Zoom Air-4000 EXAMPLES The following hostname.if(5) example configures awi0 to join whatever network is available on boot, using channel 11, obtaining an IP address using DHCP: dhcp NONE NONE NONE chan 11 Return awi0 to its default settings: # ifconfig awi0 -bssid -chan media autoselect nwid "" Join an existing BSS network, ``my_net'': # ifconfig awi0 192.168.1.1 netmask 0xffffff00 nwid my_net DIAGNOSTICS awi0: unable to allocate memory space; using i/o only Indicates that the driver was not able to allocate 32kb of PCMCIA bus address space into which to map the device; the driver will use the (slightly slower) i/o- space only access methods to read and write to the shared memory. This message is in some sense to be expected and should not be a cause for alarm. See pcmcia(4) for information on how to increase the memory available to the PCMCIA controller. awi0: selftest failed (code %x) The device failed to pass its internal selftest. awi0: device failed to complete selftest (code %x) The device failed to complete its self test within 5 seconds. awi0: device timeout awi0: timeout waiting for command completion The device failed to gener- ate an interrupt to acknowledge a command. awi0: transmit timeout The device failed to generate an interrupt to ac- knowledge a transmitted packet. awi0: large frame truncated The system handed the driver a packet which was too large to transmit in one piece. awi0: device enable failed The system was unable to power on the card. awi0: associated with %s, SSID: %s The device has successfully synchro- nized with the identified Access Point and is ready to relay traffic. awi0: no recent beacon from %s; rescanning The device has not heard a beacon from its currently associated Access Point recently, and is look- ing for a new Access Point. awi0: received deauth The Access Point the card was most recently asso- ciated with has forgotten about us. SEE ALSO arp(4), ifmedia(4), intro(4), netintro(4), pcmcia(4), hostname.if(5), ifconfig(8) Am79C930 PCnet Mobile Single-Chip Wireless LAN Media Access Controller, http://www.amd.com. HISTORY The awi device driver first appeared in OpenBSD 2.7. AUTHORS The awi driver was written by Bill Sommerfeld <sommerfeld@netbsd.org> and ported to OpenBSD by Angelos D. Keromytis <angelos@dsl.cis.upenn.edu>. BUGS Doesn't support ad-hoc mode or WEP. Round trip times seem higher than what one might expect. OpenBSD 4.3 May 31, 2007 3