xref: /openbsd-src/share/man/man4/iwn.4 (revision 2b0358df1d88d06ef4139321dd05bd5e05d91eaf)
1.\" $OpenBSD: iwn.4,v 1.17 2009/02/16 08:15:22 jmc Exp $
2.\"
3.\" Copyright (c) 2007,2008
4.\"	Damien Bergamini <damien.bergamini@free.fr>. All rights reserved.
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: February 16 2009 $
19.Os
20.Dt IWN 4
21.Sh NAME
22.Nm iwn
23.Nd "Intel WiFi Link 4965/5100/5300 IEEE 802.11a/b/g/Draft-N wireless network devices"
24.Sh SYNOPSIS
25.Cd "iwn* at pci?"
26.Sh DESCRIPTION
27The
28.Nm
29driver provides support for
30.Tn Intel
31Wireless WiFi Link 4965AGN and Intel WiFi Link 5000 Series
32Mini PCI Express network adapters.
33.Pp
34The Intel Wireless WiFi Link 4965AGN product is a PCIe Mini Card
35network adapter that operates in both the 2.4GHz and 5GHz spectrum.
36The 4965AGN adapters have 2 transmit paths and 3 receiver paths (2T3R).
37.Pp
38The Intel WiFi Link 5000 series is a family of wireless network adapters
39that operate in both the 2.4GHz and 5GHz spectrum.
40These adapters are available in both PCIe Mini Card (model code ending by MMW)
41and PCIe Half Mini Card (model code ending by HMW) form factor.
42The
43.Nm
44driver provides support for the 5100, 5150, 5300 and 5350 adapters.
45The 5100 and 5150 adapters have 1 transmit path and 2 receiver paths (1T2R).
46The 5300 and 5350 adapters have 3 transmit paths and 3 receiver paths (3T3R).
47.Pp
48These are the modes the
49.Nm
50driver can operate in:
51.Bl -tag -width "IBSS-masterXX"
52.It BSS mode
53Also known as
54.Em infrastructure
55mode, this is used when associating with an access point, through
56which all traffic passes.
57This mode is the default.
58.It monitor mode
59In this mode the driver is able to receive packets without
60associating with an access point.
61This disables the internal receive filter and enables the card to
62capture packets from networks which it wouldn't normally have access to,
63or to scan for access points.
64.El
65.Pp
66The
67.Nm
68driver can be configured to use
69Wireless Equivalent Privacy (WEP) or
70Wi-Fi Protected Access (WPA-PSK and WPA2-PSK).
71WPA is the de facto encryption standard for wireless networks.
72It is strongly recommended that WEP
73not be used as the sole mechanism
74to secure wireless communication,
75due to serious weaknesses in it.
76The
77.Nm
78driver offloads both encryption and decryption of unicast data frames to the
79hardware for the CCMP cipher.
80.Pp
81The device has one temperature sensor in degC.
82Sensor data is updated every 500 milliseconds.
83.Pp
84The
85.Nm
86driver can be configured at runtime with
87.Xr ifconfig 8
88or on boot with
89.Xr hostname.if 5 .
90.Sh FILES
91The driver needs at least version 5.1 of the following firmware files,
92which are loaded when an interface is brought up:
93.Pp
94.Bl -tag -width Ds -offset indent -compact
95.It Pa /etc/firmware/iwn-4965
96.It Pa /etc/firmware/iwn-5000
97.El
98.Pp
99These firmware files are not free because Intel refuses to grant
100distribution rights without contractual obligations.
101As a result, even though
102.Ox
103includes the driver, the firmware files cannot be included and
104users have to download these files on their own.
105.Pp
106A prepackaged version of the firmware, designed to be used with
107.Xr pkg_add 1 ,
108can be found at:
109.Bd -literal
110http://damien.bergamini.free.fr/packages/openbsd/iwn-firmware-5.1.tgz
111.Ed
112.Sh EXAMPLES
113The following
114.Xr hostname.if 5
115example configures iwn0 to join whatever network is available on boot,
116using WEP key
117.Dq 0x1deadbeef1 ,
118channel 11, obtaining an IP address using DHCP:
119.Bd -literal -offset indent
120dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
121.Ed
122.Pp
123Configure iwn0 to join network
124.Dq my_net
125using WPA-PSK with passphrase
126.Dq my_passphrase :
127.Bd -literal -offset indent
128# ifconfig iwn0 nwid my_net wpa wpapsk \e
129	`wpa-psk my_net my_passphrase`
130.Ed
131.Pp
132Return iwn0 to its default settings:
133.Bd -literal -offset indent
134# ifconfig iwn0 -bssid -chan media autoselect \e
135	nwid "" -nwkey -wpa -wpapsk
136.Ed
137.Pp
138Join an existing BSS network,
139.Dq my_net :
140.Bd -literal -offset indent
141# ifconfig iwn0 192.168.1.1 netmask 0xffffff00 nwid my_net
142.Ed
143.Sh DIAGNOSTICS
144.Bl -diag
145.It "iwn%d: device timeout"
146A frame dispatched to the hardware for transmission did not complete in time.
147The driver will reset the hardware.
148This should not happen.
149.It "iwn%d: fatal firmware error"
150For some reason, the firmware crashed.
151The driver will reset the hardware.
152This should not happen.
153.It "iwn%d: radio is disabled by hardware switch"
154The radio transmitter is off and thus no packet can go out.
155The driver will reset the hardware.
156Make sure the laptop radio switch is on.
157.It "iwn%d: error %d, could not read firmware %s"
158For some reason, the driver was unable to read the firmware image from the
159filesystem.
160The file might be missing or corrupted.
161.It "iwn%d: firmware file too short: %d bytes"
162The firmware image is corrupted and can't be loaded into the adapter.
163.It "iwn%d: could not load firmware"
164An attempt to load the firmware into the adapter failed.
165The driver will reset the hardware.
166.El
167.Sh SEE ALSO
168.Xr pkg_add 1 ,
169.Xr arp 4 ,
170.Xr ifmedia 4 ,
171.Xr intro 4 ,
172.Xr netintro 4 ,
173.Xr pci 4 ,
174.Xr hostname.if 5 ,
175.Xr ifconfig 8 ,
176.Xr wpa-psk 8
177.Sh AUTHORS
178The
179.Nm
180driver was written by
181.An Damien Bergamini Aq damien@openbsd.org .
182.Sh CAVEATS
183The
184.Nm
185driver does not support any of the 802.11n capabilities offered by
186the 4965 and 5000 chipsets.
187Additional work is required in
188.Xr ieee80211 9
189before those features can be supported.
190