1.\" $OpenBSD: zyd.4,v 1.36 2010/11/01 17:59:09 jmc Exp $ 2.\" 3.\" Copyright (c) 1997, 1998, 1999 4.\" Bill Paul <wpaul@ctr.columbia.edu>. 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. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Bill Paul. 17.\" 4. Neither the name of the author nor the names of any co-contributors 18.\" may be used to endorse or promote products derived from this software 19.\" without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 22.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 25.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31.\" THE POSSIBILITY OF SUCH DAMAGE. 32.\" 33.Dd $Mdocdate: November 1 2010 $ 34.Dt ZYD 4 35.Os 36.Sh NAME 37.Nm zyd 38.Nd ZyDAS ZD1211/ZD1211B USB IEEE 802.11b/g wireless network device 39.Sh SYNOPSIS 40.Cd "zyd* at uhub? port ?" 41.Sh DESCRIPTION 42The 43.Nm 44driver provides support for wireless network adapters based around 45the ZyDAS ZD1211 and ZD1211B USB chips. 46.Pp 47These are the modes the 48.Nm 49driver can operate in: 50.Bl -tag -width "IBSS-masterXX" 51.It BSS mode 52Also known as 53.Em infrastructure 54mode, this is used when associating with an access point, through 55which all traffic passes. 56This mode is the default. 57.It monitor mode 58In this mode the driver is able to receive packets without 59associating with an access point. 60This disables the internal receive filter and enables the card to 61capture packets from networks which it wouldn't normally have access to, 62or to scan for access points. 63.El 64.Pp 65The 66.Nm 67driver can be configured to use 68Wired Equivalent Privacy (WEP) or 69Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 70WPA is the de facto encryption standard for wireless networks. 71It is strongly recommended that WEP 72not be used as the sole mechanism 73to secure wireless communication, 74due to serious weaknesses in it. 75The 76.Nm 77driver relies on the software 802.11 stack for both encryption and decryption 78of data frames. 79.Pp 80The 81.Nm 82driver can be configured at runtime with 83.Xr ifconfig 8 84or on boot with 85.Xr hostname.if 5 . 86.Sh HARDWARE 87The following devices are known to be supported by the 88.Nm 89driver: 90.Pp 91.Bl -tag -width Ds -offset indent -compact 92.It 3COM 3CRUSB10075 93.It Acer WLAN-G-US1 94.It Airlink+ AWLL3025 95.It Airlink 101 AWLL3026 96.It AOpen 802.11g WL54 97.It Asus A9T integrated wireless 98.It Asus WL-159g 99.It Belkin F5D7050 v.4000 100.It Billion BiPAC 3011G 101.It Buffalo WLI-U2-KG54L 102.It CC&C WL-2203B 103.It DrayTek Vigor 550 104.It Edimax EW-7317UG 105.It Edimax EW-7317LDG 106.It Fiberline Networks WL-43OU 107.It iNexQ UR055g 108.It Linksys WUSBF54G 109.It Longshine LCS-8131G3 110.It MSI US54SE 111.It Philips SNU5600 112.It Planet WL-U356 113.It Planex GW-US54GD 114.It Planex GW-US54GXS 115.It Planex GW-US54GZL 116.It Planex GW-US54Mini 117.It Safecom SWMULZ-5400 118.It Sagem XG 760A 119.It Sagem XG 76NA 120.It Sandberg Wireless G54 USB 121.It Sitecom WL-113 122.It Sitecom WL-603 123.It SMC SMCWUSB-G 124.It Sweex wireless USB 54 Mbps 125.It Tekram/Siemens USB adapter 126.It Telegent TG54USB 127.It Trendnet TEW-424UB rev A 128.It Trendnet TEW-429UB 129.It TwinMOS G240 130.It US Robotics 5423 131.It X-Micro XWL-11GUZX 132.It Yakumo QuickWLAN USB 133.It Zonet ZEW2501 134.It ZyXEL G-202 135.It ZyXEL ZyAIR G-220 136.El 137.Sh FILES 138The adapter needs some firmware files, which are loaded on demand by the 139driver when a device is attached: 140.Pp 141.Bl -tag -width Ds -offset indent -compact 142.It Pa /etc/firmware/zd1211 143.It Pa /etc/firmware/zd1211b 144.El 145.Sh EXAMPLES 146The following 147.Xr hostname.if 5 148example configures zyd0 to join whatever network is available on boot, 149using WEP key 150.Dq 0x1deadbeef1 , 151channel 11, obtaining an IP address using DHCP: 152.Bd -literal -offset indent 153dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11 154.Ed 155.Pp 156Configure zyd0 to join network 157.Dq my_net 158using WPA with passphrase 159.Dq my_passphrase : 160.Bd -literal -offset indent 161# ifconfig zyd0 nwid my_net wpakey my_passphrase 162.Ed 163.Pp 164Join an existing BSS network, 165.Dq my_net : 166.Bd -literal -offset indent 167# ifconfig zyd0 192.168.0.2 netmask 0xffffff00 nwid my_net 168.Ed 169.Sh DIAGNOSTICS 170.Bl -diag 171.It "zyd%d: error %d, could not read firmware %s" 172For some reason, the driver was unable to read the firmware image from the 173filesystem. 174The file might be missing or corrupted. 175.It "zyd%d: could not load firmware (error=%d)" 176An error occurred while attempting to upload the firmware to the onboard 177microcontroller unit. 178.It "zyd%d: could not send command (error=%s)" 179An attempt to send a command to the firmware failed. 180.It "zyd%d: sorry, radio %s is not supported yet" 181Support for the specified radio chip is not yet implemented in the driver. 182The device will not attach. 183.It "zyd%d: device version mismatch: 0x%x (only >= 43.30 supported)" 184Early revisions of the ZD1211 chipset are not supported by this driver. 185The device will not attach. 186.It "zyd%d: device timeout" 187A frame dispatched to the hardware for transmission did not complete in time. 188The driver will reset the hardware. 189This should not happen. 190.El 191.Sh SEE ALSO 192.Xr arp 4 , 193.Xr ifmedia 4 , 194.Xr intro 4 , 195.Xr netintro 4 , 196.Xr usb 4 , 197.Xr hostname.if 5 , 198.Xr ifconfig 8 199.Sh AUTHORS 200.An -nosplit 201The 202.Nm 203driver was written by 204.An Florian Stoehr Aq ich@florian-stoehr.de , 205.An Damien Bergamini Aq damien@openbsd.org , 206and 207.An Jonathan Gray Aq jsg@openbsd.org . 208.Sh CAVEATS 209The 210.Nm 211driver does not support a lot of the functionality available in the hardware. 212More work is required to properly support the IBSS and power management 213features. 214