10c1154eaSWarner Losh.\" $OpenBSD: zyd.4,v 1.22 2007/05/24 02:49:57 cnst Exp $ 20c1154eaSWarner Losh.\" $NetBSD: zyd.4,v 1.1 2007/06/09 11:20:55 kiyohara Exp $ 30c1154eaSWarner Losh.\" $FreeBSD$ 40c1154eaSWarner Losh.\" 50c1154eaSWarner Losh.\" Copyright (c) 1997, 1998, 1999 60c1154eaSWarner Losh.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 70c1154eaSWarner Losh.\" 80c1154eaSWarner Losh.\" Redistribution and use in source and binary forms, with or without 90c1154eaSWarner Losh.\" modification, are permitted provided that the following conditions 100c1154eaSWarner Losh.\" are met: 110c1154eaSWarner Losh.\" 1. Redistributions of source code must retain the above copyright 120c1154eaSWarner Losh.\" notice, this list of conditions and the following disclaimer. 130c1154eaSWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright 140c1154eaSWarner Losh.\" notice, this list of conditions and the following disclaimer in the 150c1154eaSWarner Losh.\" documentation and/or other materials provided with the distribution. 160c1154eaSWarner Losh.\" 3. All advertising materials mentioning features or use of this software 170c1154eaSWarner Losh.\" must display the following acknowledgement: 180c1154eaSWarner Losh.\" This product includes software developed by Bill Paul. 190c1154eaSWarner Losh.\" 4. Neither the name of the author nor the names of any co-contributors 200c1154eaSWarner Losh.\" may be used to endorse or promote products derived from this software 210c1154eaSWarner Losh.\" without specific prior written permission. 220c1154eaSWarner Losh.\" 230c1154eaSWarner Losh.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 240c1154eaSWarner Losh.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 250c1154eaSWarner Losh.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 260c1154eaSWarner Losh.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 270c1154eaSWarner Losh.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 280c1154eaSWarner Losh.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 290c1154eaSWarner Losh.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 300c1154eaSWarner Losh.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 310c1154eaSWarner Losh.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 320c1154eaSWarner Losh.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 330c1154eaSWarner Losh.\" THE POSSIBILITY OF SUCH DAMAGE. 340c1154eaSWarner Losh.\" 358b9003d1SChristian Brueffer.Dd September 6, 2007 360c1154eaSWarner Losh.Dt ZYD 4 370c1154eaSWarner Losh.Os 380c1154eaSWarner Losh.Sh NAME 390c1154eaSWarner Losh.Nm zyd 400c1154eaSWarner Losh.Nd ZyDAS ZD1211/ZD1211B USB IEEE 802.11b/g wireless network device 410c1154eaSWarner Losh.Sh SYNOPSIS 428b9003d1SChristian BruefferTo compile this driver into the kernel, 438b9003d1SChristian Bruefferplace the following lines in your 448b9003d1SChristian Bruefferkernel configuration file: 458b9003d1SChristian Brueffer.Bd -ragged -offset indent 468b9003d1SChristian Brueffer.Cd "device ehci" 478b9003d1SChristian Brueffer.Cd "device uhci" 488b9003d1SChristian Brueffer.Cd "device ohci" 498b9003d1SChristian Brueffer.Cd "device usb" 508b9003d1SChristian Brueffer.Cd "device zyd" 518b9003d1SChristian Brueffer.Cd "device wlan" 528b9003d1SChristian Brueffer.Cd "device wlan_amrr" 538b9003d1SChristian Brueffer.Ed 548b9003d1SChristian Brueffer.Pp 558b9003d1SChristian BruefferAlternatively, to load the driver as a 568b9003d1SChristian Brueffermodule at boot time, place the following line in 578b9003d1SChristian Brueffer.Xr loader.conf 5 : 588b9003d1SChristian Brueffer.Bd -literal -offset indent 598b9003d1SChristian Bruefferif_zyd_load="YES" 608b9003d1SChristian Brueffer.Ed 610c1154eaSWarner Losh.Sh DESCRIPTION 620c1154eaSWarner LoshThe 630c1154eaSWarner Losh.Nm 640c1154eaSWarner Loshdriver provides support for wireless network adapters based around 650c1154eaSWarner Loshthe ZyDAS ZD1211 and ZD1211B USB chips. 660c1154eaSWarner Losh.Pp 670c1154eaSWarner LoshThese are the modes the 680c1154eaSWarner Losh.Nm 690c1154eaSWarner Loshdriver can operate in: 700c1154eaSWarner Losh.Bl -tag -width "IBSS-masterXX" 710c1154eaSWarner Losh.It BSS mode 720c1154eaSWarner LoshAlso known as 730c1154eaSWarner Losh.Em infrastructure 740c1154eaSWarner Loshmode, this is used when associating with an access point, through 750c1154eaSWarner Loshwhich all traffic passes. 760c1154eaSWarner LoshThis mode is the default. 770c1154eaSWarner Losh.It monitor mode 780c1154eaSWarner LoshIn this mode the driver is able to receive packets without 790c1154eaSWarner Loshassociating with an access point. 800c1154eaSWarner LoshThis disables the internal receive filter and enables the card to 810c1154eaSWarner Loshcapture packets from networks which it wouldn't normally have access to, 820c1154eaSWarner Loshor to scan for access points. 830c1154eaSWarner Losh.El 840c1154eaSWarner Losh.Pp 850c1154eaSWarner Losh.Nm 860c1154eaSWarner Loshsupports software WEP. 870c1154eaSWarner LoshWired Equivalent Privacy (WEP) is the de facto encryption standard 880c1154eaSWarner Loshfor wireless networks. 890c1154eaSWarner LoshIt can be typically configured in one of three modes: 900c1154eaSWarner Loshno encryption; 40-bit encryption; or 104-bit encryption. 910c1154eaSWarner LoshUnfortunately, due to serious weaknesses in WEP protocol 920c1154eaSWarner Loshit is strongly recommended that it not be used as the 930c1154eaSWarner Loshsole mechanism to secure wireless communication. 940c1154eaSWarner LoshWEP is not enabled by default. 950c1154eaSWarner Losh.Sh HARDWARE 960c1154eaSWarner LoshThe following devices are known to be supported by the 970c1154eaSWarner Losh.Nm 980c1154eaSWarner Loshdriver: 990c1154eaSWarner Losh.Pp 1000c1154eaSWarner Losh.Bl -tag -width Ds -offset indent -compact 1010c1154eaSWarner Losh.It 3COM 3CRUSB10075 1020c1154eaSWarner Losh.It Acer WLAN-G-US1 1030c1154eaSWarner Losh.It Airlink+ AWLL3025 1040c1154eaSWarner Losh.It Airlink 101 AWLL3026 1050c1154eaSWarner Losh.It AOpen 802.11g WL54 1060c1154eaSWarner Losh.It Asus A9T integrated wirless 1070c1154eaSWarner Losh.It Asus WL-159g 1080c1154eaSWarner Losh.It Belkin F5D7050 v.4000 1090c1154eaSWarner Losh.It Billion BiPAC 3011G 1100c1154eaSWarner Losh.It Buffalo WLI-U2-KG54L 1110c1154eaSWarner Losh.It CC&C WL-2203B 1120c1154eaSWarner Losh.It DrayTek Vigor 550 1130c1154eaSWarner Losh.It Edimax EW-7317UG 1140c1154eaSWarner Losh.It Edimax EW-7317LDG 1150c1154eaSWarner Losh.It Fiberline Networks WL-43OU 1160c1154eaSWarner Losh.It iNexQ UR055g 1170c1154eaSWarner Losh.It Linksys WUSBF54G 1180c1154eaSWarner Losh.It Longshine LCS-8131G3 1190c1154eaSWarner Losh.It MSI US54SE 1200c1154eaSWarner Losh.It Philips SNU5600 1210c1154eaSWarner Losh.It Planet WL-U356 1220c1154eaSWarner Losh.It Planex GW-US54GZ 1230c1154eaSWarner Losh.It Planex GW-US54GZL 1240c1154eaSWarner Losh.It Planex GW-US54Mini 1250c1154eaSWarner Losh.It Safecom SWMULZ-5400 1260c1154eaSWarner Losh.It Sagem XG 760A 1270c1154eaSWarner Losh.It Sagem XG 76NA 1280c1154eaSWarner Losh.It Sandberg Wireless G54 USB 1290c1154eaSWarner Losh.It Sitecom WL-113 1300c1154eaSWarner Losh.It SMC SMCWUSB-G 1310c1154eaSWarner Losh.It Sweex wireless USB 54 Mbps 1320c1154eaSWarner Losh.It Tekram/Siemens USB adapter 1330c1154eaSWarner Losh.It Telegent TG54USB 1340c1154eaSWarner Losh.It Trendnet TEW-424UB 1350c1154eaSWarner Losh.It Trendnet TEW-429UB 1360c1154eaSWarner Losh.It TwinMOS G240 1370c1154eaSWarner Losh.It Unicorn WL-54G 1380c1154eaSWarner Losh.It US Robotics 5423 1390c1154eaSWarner Losh.It X-Micro XWL-11GUZX 1400c1154eaSWarner Losh.It Yakumo QuickWLAN USB 1410c1154eaSWarner Losh.It Zonet ZEW2501 1420c1154eaSWarner Losh.It ZyXEL ZyAIR G-220 1430c1154eaSWarner Losh.El 1440c1154eaSWarner Losh.Sh EXAMPLES 1450c1154eaSWarner LoshThe following 1460c1154eaSWarner Loshexamples configures zyd0 to join whatever network is available on boot, 1470c1154eaSWarner Loshusing WEP key 1480c1154eaSWarner Losh.Dq 0x1deadbeef1 , 1490c1154eaSWarner Loshchannel 11: 1500c1154eaSWarner Losh.Bd -literal -offset indent 1510c1154eaSWarner Loshinet 192.168.1.1 netmask 255.255.255.0 wepkey 0x1deadbeef1 channel 11 1520c1154eaSWarner Losh.Ed 1530c1154eaSWarner Losh.Pp 1540c1154eaSWarner LoshConfigure zyd0 for WEP, using hex key 1550c1154eaSWarner Losh.Dq 0x1deadbeef1 : 1560c1154eaSWarner Losh.Bd -literal -offset indent 1570c1154eaSWarner Losh# ifconfig zyd0 wepkey 0x1deadbeef1 1580c1154eaSWarner Losh.Ed 1590c1154eaSWarner Losh.Pp 1600c1154eaSWarner LoshJoin an existing BSS network, 1610c1154eaSWarner Losh.Dq my_net : 1620c1154eaSWarner Losh.Bd -literal -offset indent 1630c1154eaSWarner Losh# ifconfig zyd0 192.168.0.2 netmask 0xffffff00 ssid my_net 1640c1154eaSWarner Losh.Ed 1650c1154eaSWarner Losh.Sh DIAGNOSTICS 1660c1154eaSWarner Losh.Bl -diag 1670c1154eaSWarner Losh.It "zyd%d: could not load firmware (error=%d)" 1680c1154eaSWarner LoshAn error occurred while attempting to upload the firmware to the onboard 1690c1154eaSWarner Loshmicrocontroller unit. 1700c1154eaSWarner Losh.It "zyd%d: could not send command (error=%s)" 1710c1154eaSWarner LoshAn attempt to send a command to the firmware failed. 1720c1154eaSWarner Losh.It "zyd%d: sorry, radio %s is not supported yet" 1730c1154eaSWarner LoshSupport for the specified radio chip is not yet implemented in the driver. 1740c1154eaSWarner LoshThe device will not attach. 1750c1154eaSWarner Losh.It "zyd%d: device version mismatch: 0x%x (only >= 43.30 supported)" 1760c1154eaSWarner LoshEarly revisions of the ZD1211 chipset are not supported by this driver. 1770c1154eaSWarner LoshThe device will not attach. 1780c1154eaSWarner Losh.It "zyd%d: device timeout" 1790c1154eaSWarner LoshA frame dispatched to the hardware for transmission did not complete in time. 1800c1154eaSWarner LoshThe driver will reset the hardware. 1810c1154eaSWarner LoshThis should not happen. 1820c1154eaSWarner Losh.El 1830c1154eaSWarner Losh.Sh SEE ALSO 1840c1154eaSWarner Losh.Xr arp 4 , 1850c1154eaSWarner Losh.Xr intro 4 , 1860c1154eaSWarner Losh.Xr netintro 4 , 1870c1154eaSWarner Losh.Xr usb 4 , 1880c1154eaSWarner Losh.Xr wlan 4 , 1890c1154eaSWarner Losh.Xr wlan_amrr 4 , 1900c1154eaSWarner Losh.Xr ifconfig 8 1910c1154eaSWarner Losh.Sh AUTHORS 1920c1154eaSWarner Losh.An -nosplit 1930c1154eaSWarner LoshThe 1940c1154eaSWarner Losh.Nm 1950c1154eaSWarner Loshdriver was written by 1960c1154eaSWarner Losh.An Florian Stoehr Aq ich@florian-stoehr.de , 1970c1154eaSWarner Losh.An Damien Bergamini Aq damien@openbsd.org , 1980c1154eaSWarner Loshand 1990c1154eaSWarner Losh.An Jonathan Gray Aq jsg@openbsd.org . 2000c1154eaSWarner Losh.Sh CAVEATS 2010c1154eaSWarner LoshThe 2020c1154eaSWarner Losh.Nm 2030c1154eaSWarner Loshdriver does not support a lot of the functionality available in the hardware. 2040c1154eaSWarner LoshMore work is required to properly support the IBSS and power management 2050c1154eaSWarner Loshfeatures. 206