1.\" Copyright (c) 1997, 1998, 1999 2.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 3. All advertising materials mentioning features or use of this software 13.\" must display the following acknowledgement: 14.\" This product includes software developed by Bill Paul. 15.\" 4. 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 Bill Paul 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 Bill Paul OR THE VOICES IN HIS HEAD 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.\" $FreeBSD: head/share/man/man4/wi.4 267938 2014-06-26 21:46:14Z bapt $ 32.\" $OpenBSD: wi.4tbl,v 1.14 2002/04/29 19:53:50 jsyn Exp $ 33.\" 34.Dd May 26, 2016 35.Dt WI 4 36.Os 37.Sh NAME 38.Nm wi 39.Nd "Lucent Hermes, and Intersil PRISM IEEE 802.11 driver" 40.Sh SYNOPSIS 41To compile this driver into the kernel, 42place the following lines in your 43kernel configuration file: 44.Bd -ragged -offset indent 45.Cd "device wi" 46.Cd "device wlan" 47.Ed 48.Pp 49Alternatively, to load the driver as a 50module at boot time, place the following line in 51.Xr loader.conf 5 : 52.Bd -literal -offset indent 53if_wi_load="YES" 54.Ed 55.Sh DESCRIPTION 56The 57.Nm 58driver provides support for 802.11b wireless network adapters based around 59the Lucent Hermes, Intersil PRISM-II, Intersil PRISM-2.5, and Intersil 60Prism-3 chipsets. 61All chipsets provide a similar interface to the driver. 62Only the Intersil chipsets support access point operation or WPA. 63Very old versions of firmware are not supported at all. 64Older versions of the firmware that are supported may severely limit 65the ability to use these cards in newer networks. 66Only relatively recent versions of Intersil firmware supports WPA. 67See CAVEATS for details. 68All host/device interaction is via programmed I/O, even on those cards 69that support a DMA interface. 70.Pp 71For more information on configuring this device, see 72.Xr ifconfig 8 . 73The 74.Nm 75driver supports 76.Xr polling 4 . 77.Pp 78.Nm 79supports 80.Cm station , 81.Cm adhoc , 82.Cm adhoc-demo , 83.Cm hostap , 84and 85.Cm monitor 86mode operation. 87Only one 88virtual interface may be configured at a time. 89For more information on configuring this device, see 90.Xr ifconfig 8 . 91.Pp 92Cards supported by the 93.Nm 94driver come in a variety of packages, though the most common 95are of the PCMCIA type. 96In many cases, the PCI version of a wireless card is simply 97a PCMCIA card bundled with a PCI adapter. 98The PCI adapters come in two flavors: true PCMCIA bridges and 99dumb PCMCIA bridges. 100A true PCMCIA bridge (such as those sold by Lucent) will attach 101as a real PCMCIA controller. 102The wireless card will then attach to the PCMCIA bus. 103Wireless cards in PCMCIA slots may be inserted and ejected on the fly. 104.Pp 105A dumb bridge, on the other hand, does not show up as a true PCMCIA bus. 106The wireless card will simply appear to the host as a normal PCI 107device and will not require any PCMCIA support. 108Cards in this type of adapter should only be removed when the 109machine is powered down. 110.Pp 111The following cards are among those supported by the 112.Nm 113driver: 114.Pp 115.Bl -column -compact "Linksys Instant Wireless WPC11 2.5" "Spectrum24" "PCI or PCMCIA" 116.Em "Card Chip Bus" 1173Com AirConnect 3CRWE777A Prism-II PCI 118Accton airDirect WN3301 PCMCIA 119ACTIONTEC HWC01170 Prism-2.5 PCMCIA 120Adaptech ANW-8030 Prism-3 PCMCIA 121Addtron AWP-100 Prism-II PCMCIA 122Adtec Adlink/340C Prism-II PCMCIA 123Airvast WN 100 Prism-3 PCMCIA 124Airway 802.11 Adapter PCMCIA 125Agere Orinoco Hermes PCMCIA 126Allied Telesis WR211PCM Prism-II PCMCIA 127ArTem OnAir Prism? PCMCIA 128Asus WL100 Prism-2.5 PCMCIA 129Avaya Wireless Prism-II PCMCIA 130Bay eMobility 11B Prism-2.5? PCMCIA 131Blue Concentric Circle WL-379F Prism-II CF 132BreezeNet Wireless Prism-II PCMCIA 133Buffalo WLI-PCM-S11 Prism-II PCMCIA 134Buffalo WLI-PCM-L11G Hermes PCMCIA 135Buffalo WLI-CF-S11G Prism-II CF 136Buffalo WLI2-CF-S11G Prism 2.5 CF 137Cabletron RoamAbout Hermes PCMCIA 138Compaq Agency NC5004 Prism-II PCMCIA 139Compaq WL100 Prism-II PCMCIA 140Compaq WL110 Hermes PCMCIA 141Compaq WL200 Prism-II PCMCIA 142Contec FLEXLAN/FX-DS110-PCC Prism-II PCMCIA 143Corega PCC-11 Prism-II PCMCIA 144Corega PCCA-11 Prism-II PCMCIA 145Corega PCCB-11 Prism-II PCMCIA 146Corega CGWLPCIA11 Prism-II PCI 147Dell TrueMobile 1150 Hermes PCMCIA 148Dlink Air 660 Prism-II PCMCIA 149Dlink DWL520 Prism-2.5 PCI 150Dlink DWL650 Prism-2.5 PCMCIA 151ELECOM Air@Hawk/LD-WL11/PCC PCMCIA 152ELSA MC-11 PCMCIA 153ELSA XI300 Prism-II PCMCIA 154ELSA XI325 Prism-2.5 PCMCIA 155ELSA APDL325 Prism-2.5 PCMCIA 156ELSA XI330 Prism-3 PCMCIA 157ELSA XI800 Prism-II CF 158EMTAC A2424i Prism-II PCMCIA 159Farallon Skyline Prism-II PCMCIA 160Gemtek WL-311 Prism-2.5 PCMCIA 161Hawking Technology WE110P Prism-2.5 PCMCIA 162Home Wireless Networks Prism-II PCMCIA 163IBM High Rate Wireless Hermes PCMCIA 164ICOM SL-1100 Prism-II PCMCIA 165I-O DATA WN-B11/PCM Prism-II PCMCIA 166Intersil Prism II Prism-II PCMCIA 167Intersil Mini-PCI Prism-2.5 PCI 168Intersil ISL37100P Prism-3 PCMCIA 169Intersil ISL37110P Prism-3 PCMCIA 170Intersil ISL37300P Prism-3 PCMCIA 171Laneed Wireless PCMCIA 172Linksys Instant Wireless WPC11 Prism-II PCMCIA 173Linksys Instant Wireless WPC11 2.5 Prism-2.5 PCMCIA 174Linksys Instant Wireless WPC11 3.0 Prism-3 PCMCIA 175Linksys WCF11 Prism-3 PCMCIA 176Linksys WCF12 Prism-3 CF 177Lucent WaveLAN Hermes PCMCIA 178Melco Airconnect Prism-II PCMCIA 179Microsoft MN-520 WLAN Prism-II PCMCIA 180NANOSPEED ROOT-RZ2000 Prism-II PCMCIA 181NCR WaveLAN/IEEE 802.11 PCMCIA 182NDC/Sohoware NCP130 Prism-II PCI 183NEC CMZ-RT-WP Prism-II PCMCIA 184NEC PK-WL001 Lucent PCMCIA 185NEC PC-WL/11C Prism-II PCMCIA 186Netgear MA311 Prism-2.5 PCI 187Netgear MA401 Prism-II/2.5 PCMCIA 188Netgear MA401RA Prism-II PCMCIA 189Netgear MA701 Prism-II CF 190NOKIA C020 WLAN Prism-II PCMCIA 191NOKIA C110 WLAN Prism-2.5 PCMCIA 192NTT-ME 11Mbps Wireless LAN Prism-II PCMCIA 193Planex GeoWave/GW-NS110 Prism-II PCMCIA 194Planex GW-NS11H Prism-II PCMCIA 195Proxim Harmony Prism-II PCMCIA 196Proxim RangeLAN-DS Prism-II PCMCIA 197Samsung MagicLAN SWL-2000N Prism-II PCMCIA 198SENAO SL-2511CD Prism-3 PCMCIA 199Siemens SpeedStream SS1021 Prism-II PCMCIA 200Siemens SpeedStream SS1021 Prism-3 PCMCIA 201SMC 2532W-B Prism-II PCMCIA 202SMC 2602 EZ Connect (3.3V) Prism-II PCI or PCMCIA 203SMC 2632 EZ Connect Prism-II PCMCIA 204Socket Low Power WLAN-CF Prism-II CF 205Sony PCWA-C100 Lucent PCMCIA 206Sony PEGA-WL110 Prism-2.5 PCMCIA 207TDK LAK-CD011WL Prism-II PCMCIA 208Toshiba Wireless LAN Card Prism-II PCMCIA 209U.S.\& Robotics Wireless Card 2410 Prism-II PCMCIA 210YIS YWL-11B Prism-II PCMCIA 211.El 212.Pp 213Several vendors sell PCI adapters built around the PLX Technology 9050 214or 9052 chip. 215The following such adapters are supported or expected to work: 216.Pp 217.Bl -item -compact 218.It 2193Com AirConnect 3CRWE777A (3.3V) 220.It 221Belkin F5D6000 (a rebadged WL11000P) 222.It 223Eumitcom WL11000P 224.It 225Global Sun Technology GL24110P (untested) 226.It 227Global Sun Technology GL24110P02 228.It 229LinkSys WDT11 (a rebadged GL24110P02) 230.It 231Netgear MA301 232.It 233US Robotics 2415 (rebadged WL11000P) 234.It 235Wisecom Wireless LAN PCI Adapter 236.El 237.Pp 238The following adapters have the same model numbers as those listed 239above, but might not work if the actual card is after the change away 240from the Prism family: 241.Pp 242.Bl -item -compact 243.It 244DLink DWL520 245.El 246.Sh EXAMPLES 247Join an existing BSS network (ie: connect to an access point): 248.Bd -literal -offset indent 249ifconfig wlan create wlandev wi0 inet 192.168.0.20 \e 250 netmask 0xffffff00 251.Ed 252.Pp 253Join a specific BSS network with network name 254.Dq Li my_net : 255.Bd -literal -offset indent 256ifconfig wlan create wlandev wi0 inet 192.168.0.20 \e 257 netmask 0xffffff00 ssid my_net 258.Ed 259.Pp 260Join a specific BSS network with WEP encryption: 261.Bd -literal -offset indent 262ifconfig wlan create wlandev wi0 inet 192.168.0.20 \e 263 netmask 0xffffff00 ssid my_net \e 264 wepmode on wepkey 0x8736639624 weptxkey 1 265.Ed 266.Pp 267Join a Lucent legacy demo ad-hoc network with network name 268.Dq Li my_net : 269.Bd -literal -offset indent 270ifconfig wlan create wlandev wi0 wlanmode ahdemo \e 271 inet 192.168.0.20 netmask 0xffffff00 ssid my_net 272.Ed 273.Pp 274Join/create an IBSS network with network name 275.Dq Li my_net : 276.Bd -literal -offset indent 277ifconfig wlan create wlandev wi0 wlanmode adhoc wi0 \e 278 inet 192.168.0.22 netmask 0xffffff00 ssid my_net 279.Ed 280.Pp 281Create a host-based access point (Prism only): 282.Bd -literal -offset indent 283ifconfig wlan create wlandev wi0 wlanmode hostap \e 284 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap 285.Ed 286.Pp 287Create a host-based access point with WEP enabled (Prism only) 288and plumb it into bridge to fxp0: 289.Bd -literal -offset indent 290ifconfig wlan0 create wlandev wi0 wlanmode hostap \e 291 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e 292 wepmode on wepkey 0x1234567890 weptxkey 1 293ifconfig bridge0 create 294ifconfig bridge0 addm wlan0 addm fxp0 up 295.Ed 296.Pp 297This will give you the same functionality as an access point. 298.Sh DIAGNOSTICS 299.Bl -diag 300.It "wi%d: init failed" 301The WaveLAN card failed to become ready after an initialization command 302was issued. 303.It "wi%d: failed to allocate %d bytes on NIC" 304The driver was unable to allocate memory for transmit frames in the 305NIC's on-board RAM. 306This can also be an indication of an incorrectly configured interrupt. 307.It "wi%d: device timeout" 308The WaveLAN card failed to generate an interrupt to acknowledge a transmit 309command. 310.El 311.Sh SEE ALSO 312.Xr ifmedia 4 , 313.Xr intro 4 , 314.Xr pccard 4 , 315.Xr pccbb 4 , 316.Xr pcic 4 , 317.Xr polling 4 , 318.Xr wlan 4 , 319.Xr wlan_ccmp 4 , 320.Xr wlan_tkip 4 , 321.Xr wlan_wep 4 , 322.Xr wlan_xauth 4 , 323.Xr hostapd 8 , 324.Xr ifconfig 8 , 325.Xr wpa_supplicant 8 326.Rs 327.%T HCF Light programming specification 328.%O http://web.archive.org/web/20040130141721/http://wavelan.com/ 329.Re 330.Sh HISTORY 331The 332.Nm 333device driver first appeared in 334.Fx 3.0 . 335.Sh AUTHORS 336The original 337.Nm 338driver was written by 339.An Bill Paul Aq Mt wpaul@ctr.columbia.edu . 340This man page comes from 341.Ox . 342.Sh CAVEATS 343The driver will reject devices with old firmware to 344avoid dealing with numerous defects. 345Unfortunately the driver does not support downloading new firmware 346to the card so if new firmware is needed users will have to boot 347a different system to accomplish this. 348.Pp 349Intersil Prism cards must have firmware versions 0.8.0 or later and 350version 1.7.0 or later are required to support functionality such as WPA. 351Some users of Prism-II and 2.5 based cards report that station firmware 352version 1.3.4 works better for them in hostap than 1.4.9. 353Older versions of the Prism station firmware have a number of issues 354with hostap mode. 355The IBSS/adhoc mode appears to work well on station firmware 1.3.1 and 356later. 357The IBSS/adhoc mode appears to have problems for some people with 358older versions of station firmware. 359.Pp 360Lucent cards prior to firmware version 6.0.6 do not implement IBSS 361mode and are not supported. 362.Pp 363Prior versions of 364.Nm 365supported Symbol firmware. 366That support has been removed due to persistent problems with this 367firmware as well as getting proper documentation on this firmware. 368.Pp 369Hermes 2 and Hermes 3 chips are not supported by this driver. 370.Pp 371Here's the above requirements in the form of a table 372.Pp 373.Bl -column -compact "Prims II/2.5" "xxxxxxxx" "xxxxxxxx" "xxxxxxxx" "xxxxxxxx" 374.Em "Firmware Minimum WPA Host AP Adhoc/IBSS" 375Prism II/2.5 0.8.0 1.7.0 1.3.4 1.3.1 376Prism 3 0.8.0 1.7.0 1.4.9 1.3.1 377Hermes 6.0.6 none none 6.0.6 378Symbol none none none none 379.El 380.Sh BUGS 381Not all the new messages are documented here, and many of them are 382indications of transient errors that are not indications of serious 383problems. 384