xref: /openbsd/share/man/man4/iwi.4 (revision 404b540a)
1.\" $OpenBSD: iwi.4,v 1.37 2009/09/02 07:00:24 jmc Exp $
2.\"
3.\" Copyright (c) 2004
4.\"	Damien Bergamini <damien.bergamini@free.fr>. 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 unmodified, this list of conditions, and the following
11.\"    disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd $Mdocdate: September 2 2009 $
29.Os
30.Dt IWI 4
31.Sh NAME
32.Nm iwi
33.Nd Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11a/b/g wireless network device
34.Sh SYNOPSIS
35.Cd "iwi* at pci?"
36.Sh DESCRIPTION
37The
38.Nm
39driver provides support for
40.Tn Intel
41PRO/Wireless 2200BG/2915ABG Mini PCI and 2225BG PCI network adapters.
42.Pp
43These are the modes the
44.Nm
45driver can operate in:
46.Bl -tag -width "IBSS-masterXX"
47.It BSS mode
48Also known as
49.Em infrastructure
50mode, this is used when associating with an access point, through
51which all traffic passes.
52This mode is the default.
53.It IBSS mode
54Also known as
55.Em IEEE ad-hoc
56mode or
57.Em peer-to-peer
58mode.
59This is the standardized method of operating without an access point.
60Stations associate with a service set.
61However, actual connections between stations are peer-to-peer.
62.It monitor mode
63In this mode the driver is able to receive packets without
64associating with an access point.
65This disables the internal receive filter and enables the card to
66capture packets from networks which it wouldn't normally have access to,
67or to scan for access points.
68.El
69.Pp
70The
71.Nm
72driver can be configured to use
73Wired Equivalent Privacy (WEP) or
74Wi-Fi Protected Access (WPA-PSK and WPA2-PSK).
75WPA is the de facto encryption standard for wireless networks.
76It is strongly recommended that WEP
77not be used as the sole mechanism
78to secure wireless communication,
79due to serious weaknesses in it.
80The
81.Nm
82driver relies on the software 802.11 stack for both encryption and decryption
83of data frames.
84.Pp
85The
86.Nm
87driver can be configured at runtime with
88.Xr ifconfig 8
89or on boot with
90.Xr hostname.if 5 .
91.Sh FILES
92The driver needs at least version 3.1 of the following firmware files,
93which are loaded when an interface is brought up:
94.Pp
95.Bl -tag -width Ds -offset indent -compact
96.It Pa /etc/firmware/iwi-bss
97.It Pa /etc/firmware/iwi-ibss
98.It Pa /etc/firmware/iwi-monitor
99.El
100.Pp
101These firmware files are not free because Intel refuses to grant
102distribution rights without contractual obligations.
103As a result, even though
104.Ox
105includes the driver, the firmware files cannot be included and
106users have to download these files on their own.
107The official person to state your views to about this issue is
108majid.awad@intel.com.
109.Pp
110A prepackaged version of the firmware, designed to be used with
111.Xr pkg_add 1 ,
112can be found at:
113.Pp
114.Pa http://damien.bergamini.free.fr/packages/openbsd/iwi-firmware-3.1.tgz
115.Sh EXAMPLES
116The following
117.Xr hostname.if 5
118example configures iwi0 to join whatever network is available on boot,
119using WEP key
120.Dq 0x1deadbeef1 ,
121channel 11, obtaining an IP address using DHCP:
122.Bd -literal -offset indent
123dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
124.Ed
125.Pp
126Configure iwi0 to join network
127.Dq my_net
128using WPA-PSK with passphrase
129.Dq my_passphrase :
130.Bd -literal -offset indent
131# ifconfig iwi0 nwid my_net wpa wpapsk \e
132	`wpa-psk my_net my_passphrase`
133.Ed
134.Pp
135Return iwi0 to its default settings:
136.Bd -literal -offset indent
137# ifconfig iwi0 -bssid -chan media autoselect \e
138	nwid "" -nwkey -wpa -wpapsk
139.Ed
140.Pp
141Join an existing BSS network,
142.Dq my_net :
143.Bd -literal -offset indent
144# ifconfig iwi0 192.168.1.1 netmask 0xffffff00 nwid my_net
145.Ed
146.Sh DIAGNOSTICS
147.Bl -diag
148.It "iwi%d: device timeout"
149The driver will reset the hardware.
150This should not happen.
151.It "iwi%d: error %d, could not read firmware %s"
152For some reason, the driver was unable to read the firmware image from the
153filesystem.
154The file might be missing or corrupted.
155.El
156.Sh SEE ALSO
157.Xr pkg_add 1 ,
158.Xr arp 4 ,
159.Xr ifmedia 4 ,
160.Xr intro 4 ,
161.Xr netintro 4 ,
162.Xr pci 4 ,
163.Xr hostname.if 5 ,
164.Xr ifconfig 8
165.Sh AUTHORS
166The
167.Nm
168driver was written by
169.An Damien Bergamini Aq damien@openbsd.org .
170