1.\" $OpenBSD: pgt.4,v 1.34 2011/06/09 14:21:11 deraadt Exp $ 2.\" 3.\" Copyright (c) 2006 Theo de Raadt. 4.\" Copyright (c) 2006 The DragonFly Project. 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.\" 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 14.\" the documentation and/or other materials provided with the 15.\" distribution. 16.\" 3. Neither the name of The DragonFly Project nor the names of its 17.\" contributors may be used to endorse or promote products derived 18.\" from this software without specific, prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 24.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 26.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 30.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" SUCH DAMAGE. 32.\" 33.Dd $Mdocdate: June 9 2011 $ 34.Dt PGT 4 35.Os 36.Sh NAME 37.Nm pgt 38.Nd Conexant/Intersil Prism GT Full-MAC IEEE 802.11a/b/g wireless network 39device 40.Sh SYNOPSIS 41.Cd "pgt* at cardbus?" 42.Cd "pgt* at pci?" 43.Sh DESCRIPTION 44The 45.Nm 46driver provides support for Conexant/Intersil GT-series devices 47which can support the Full-Mac firmwares, using the ISL3877, 48ISL3880, and ISL3890 chips. 49The 50.Nm 51driver will not (yet) work on similar devices using the ISL3886 or 52similar chips which use the Soft-Mac firmwares. 53.Pp 54These are the modes the 55.Nm 56driver can operate in: 57.Bl -tag -width "IBSS-masterXX" 58.It BSS mode 59Also known as 60.Em infrastructure 61mode, this is used when associating with an access point, through 62which all traffic passes. 63This mode is the default. 64.It IBSS mode 65Also known as 66.Em IEEE ad-hoc 67mode or 68.Em peer-to-peer 69mode. 70This is the standardized method of operating without an access point. 71Stations associate with a service set. 72However, actual connections between stations are peer-to-peer. 73.It Host AP 74In this mode the driver acts as an access point (base station) 75for other cards. 76.It monitor mode 77In this mode the driver is able to receive packets without 78associating with an access point. 79This disables the internal receive filter and enables the card to 80capture packets from networks which it wouldn't normally have access to, 81or to scan for access points. 82.El 83.Pp 84The 85.Nm 86driver can be configured to use hardware 87Wired Equivalent Privacy (WEP). 88It is strongly recommended that WEP 89not be used as the sole mechanism 90to secure wireless communication, 91due to serious weaknesses in it. 92.Pp 93The 94.Nm 95driver can be configured at runtime with 96.Xr ifconfig 8 97or on boot with 98.Xr hostname.if 5 . 99.Sh FILES 100The driver needs a set of firmware files which are loaded when 101an interface is brought up: 102.Pp 103.Bl -tag -width Ds -offset indent -compact 104.It Pa /etc/firmware/pgt-isl3877 105.It Pa /etc/firmware/pgt-isl3890 106.El 107.Pp 108These firmware files are not free because Conexant refuses 109to grant distribution rights. 110In fact they have rebuffed thousands 111of attempts to start a dialogue on this issue. 112As a result, even though 113.Ox 114includes the driver, the firmware files cannot be included and 115users have to download these files on their own. 116.Pp 117A prepackaged version of the firmware, designed to be used with 118.Xr pkg_add 1 , 119can be found at: 120.Bd -literal -offset 3n 121http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz 122.Ed 123.Sh HARDWARE 124The following cards are among those supported by the 125.Nm 126driver: 127.Pp 128.Bl -column -compact "SMC EZ Connect g 2.4GHz SMC2835W-v2" "ISL38xx" "CardBus" -offset 6n 129.It Em "Card Chip Bus" 130.It 3COM 3CRWE154G72 ISL3880 CardBus 131.It D-Link DWL-g650 A1 ISL3890 PCI 132.It I-O Data WN-G54/CB ISL3890 PCI 133.It I4 Z-Com XG-600 ISL3890 PCI 134.It I4 Z-Com XG-900 ISL3890 PCI 135.It Intersil PRISM Indigo ISL3877 PCI 136.It Intersil PRISM Duette ISL3890 PCI 137.It NETGEAR WG511 (Taiwanese, not Chinese) ISL3890 CardBus 138.It PLANEX GW-DS54G ISL3890 PCI 139.It SMC EZ Connect g 2.4GHz SMC2802W ISL3890 PCI 140.It SMC EZ Connect g 2.4GHz SMC2835W-v2 ISL3890 CardBus 141.It SMC 2802Wv2 ISL3890 PCI 142.It Soyo Aerielink ISL3890 CardBus 143.It ZyXEL ZyAIR G-100 ISL3890 CardBus 144.El 145.Sh EXAMPLES 146The following 147.Xr hostname.if 5 148example configures pgt0 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 156The following 157.Xr hostname.if 5 158example creates a host-based access point on boot: 159.Bd -literal -offset indent 160inet 192.168.1.1 255.255.255.0 NONE media autoselect \e 161 mediaopt hostap nwid my_net chan 11 162.Ed 163.Pp 164Configure pgt0 for WEP, using hex key 165.Dq 0x1deadbeef1 : 166.Bd -literal -offset indent 167# ifconfig pgt0 nwkey 0x1deadbeef1 168.Ed 169.Pp 170Return pgt0 to its default settings: 171.Bd -literal -offset indent 172# ifconfig pgt0 -bssid -chan media autoselect \e 173 nwid "" -nwkey 174.Ed 175.Pp 176Join an existing BSS network, 177.Dq my_net : 178.Bd -literal -offset indent 179# ifconfig pgt0 192.168.1.1 netmask 0xffffff00 nwid my_net 180.Ed 181.Sh SEE ALSO 182.Xr arp 4 , 183.Xr cardbus 4 , 184.Xr ifmedia 4 , 185.Xr intro 4 , 186.Xr netintro 4 , 187.Xr pci 4 , 188.Xr hostname.if 5 , 189.Xr hostapd 8 , 190.Xr ifconfig 8 191.Sh HISTORY 192The 193.Nm 194driver first appeared in 195.Ox 4.0 . 196.Sh AUTHORS 197.An -nosplit 198The 199.Nm 200driver was originally written for 201.Fx 202by 203.An Brian Fundakowski , 204and then rewritten for 205.Ox 206by 207.An Marcus Glocker 208and 209.An Claudio Jeker . 210.Sh CAVEATS 211Host AP mode doesn't support power saving. 212Clients attempting to use power saving mode may experience significant 213packet loss (disabling power saving on the client will fix this). 214