xref: /openbsd-src/share/man/man4/iwn.4 (revision e2e8d1e288d35686aa435f6b239ba9dcdcfd675b)
1*e2e8d1e2Sjmc.\" $OpenBSD: iwn.4,v 1.62 2023/10/14 06:29:11 jmc Exp $
2fb942e08Sdamien.\"
3df518f44Sdamien.\" Copyright (c) 2007,2008
4fb942e08Sdamien.\"	Damien Bergamini <damien.bergamini@free.fr>. All rights reserved.
5fb942e08Sdamien.\"
6fb942e08Sdamien.\" Permission to use, copy, modify, and distribute this software for any
7fb942e08Sdamien.\" purpose with or without fee is hereby granted, provided that the above
8fb942e08Sdamien.\" copyright notice and this permission notice appear in all copies.
9fb942e08Sdamien.\"
10fb942e08Sdamien.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11fb942e08Sdamien.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12fb942e08Sdamien.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13fb942e08Sdamien.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14fb942e08Sdamien.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15fb942e08Sdamien.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16fb942e08Sdamien.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17fb942e08Sdamien.\"
18*e2e8d1e2Sjmc.Dd $Mdocdate: October 14 2023 $
19fb942e08Sdamien.Dt IWN 4
20c0fdb081Sjmc.Os
21fb942e08Sdamien.Sh NAME
22fb942e08Sdamien.Nm iwn
23*e2e8d1e2Sjmc.Nd Intel WiFi Link and Centrino IEEE 802.11a/b/g/n wireless network device
24fb942e08Sdamien.Sh SYNOPSIS
25fb942e08Sdamien.Cd "iwn* at pci?"
26fb942e08Sdamien.Sh DESCRIPTION
27fb942e08SdamienThe
28fb942e08Sdamien.Nm
29416d9f2aSjmcdriver provides support for Intel Wireless WiFi Link 4965/5000/1000
30416d9f2aSjmcand Centrino Wireless-N 1000/2000/6000 Series PCIe Mini Card network adapters.
31df518f44Sdamien.Pp
32845fd490SdamienThe Intel Wireless WiFi Link 4965AGN (codenamed Kedron) is a PCIe
33a5561d9dSdamienMini Card network adapter that operates in the 2GHz and 5GHz spectra.
34845fd490SdamienIt has 2 transmit paths and 3 receiver paths (2T3R).
35a5561d9dSdamienIt is part of the fourth-generation Centrino platform (codenamed Santa Rosa).
36df518f44Sdamien.Pp
3731f05a3cSjmcThe Intel WiFi Link 5000 series is a family of wireless network adapters
38a5561d9dSdamienthat operate in the 2GHz and 5GHz spectra.
39a5561d9dSdamienThey are part of the fifth-generation Centrino platform (codenamed Montevina).
4038a0cff5SjmcThese adapters are available in both PCIe Mini Card (model code ending by MMW)
4138a0cff5Sjmcand PCIe Half Mini Card (model code ending by HMW) form factor.
42df518f44SdamienThe
43df518f44Sdamien.Nm
44e47df62fSdamiendriver provides support for the 5100 (codenamed Shirley Peak 1x2),
45e47df62fSdamien5150 (codenamed Echo Peak-V), 5300 (codenamed Shirley Peak 3x3) and
46e47df62fSdamien5350 (codenamed Echo Peak-P) adapters.
47df518f44SdamienThe 5100 and 5150 adapters have 1 transmit path and 2 receiver paths (1T2R).
48df518f44SdamienThe 5300 and 5350 adapters have 3 transmit paths and 3 receiver paths (3T3R).
49fb942e08Sdamien.Pp
50845fd490SdamienThe Intel WiFi Link 1000 (codenamed Condor Peak) is a single-chip wireless
51a5561d9dSdamiennetwork adapter that operates in the 2GHz spectrum.
52a5561d9dSdamienIt is part of the sixth-generation Centrino platform (codenamed Calpella).
53f16141c2SdamienIt is available in both PCIe Mini Card (model code ending by MMW)
54f16141c2Sdamienand PCIe Half Mini Card (model code ending by HMW) form factor.
55f16141c2SdamienIt has 1 transmit path and 2 receiver paths (1T2R).
56f16141c2Sdamien.Pp
57a5561d9dSdamienThe Intel Centrino Ultimate-N 6300 (codenamed Puma Peak 3x3) is a single-chip
58a5561d9dSdamienwireless network adapter that operates in the 2GHz and 5GHz spectra.
59a5561d9dSdamienIt has 3 transmit paths and 3 receiver paths (3T3R).
60a5561d9dSdamienThe Intel Centrino Advanced-N 6250 (codenamed Kilmer Peak) is a combo
61a5561d9dSdamienWiFi/WiMAX network adapter that operates in the 2GHz and 5GHz spectra.
62a5561d9dSdamienIt has 2 transmit paths and 2 receiver paths (2T2R).
63a5561d9dSdamienThe Intel Centrino Advanced-N 6200 (codenamed Puma Peak 2x2) is
64a5561d9dSdamiena wireless network adapter that operates in the 2GHz and 5GHz spectra.
65a5561d9dSdamienIt has 2 transmit paths and 2 receiver paths (2T2R).
66a5561d9dSdamienThese adapters are part of the sixth-generation Centrino platform
67a5561d9dSdamien(codenamed Calpella).
68a5561d9dSdamien.Pp
6971aa1d4aSkettenisThe Intel Centrino Wireless-N 2230 (codename Jackson Peak) and Intel
7071aa1d4aSkettenisCentrino Wireless-N 2200 (codename Marble Peak) are wireless network
7171aa1d4aSkettenisadapters that operate in the 2GHz spectrum.
7271aa1d4aSkettenisThese adapters have 2 transmit paths and 2 receiver paths (2T2R).
7371aa1d4aSkettenisThe Intel Centrino Wireless-N 135 and Intel Centrino Wireless-N 105
7471aa1d4aSkettenis(codename Canyon Peak) also operate in the 2GHz spectrum.
7571aa1d4aSkettenisThese adapters have 1 transmit path and 1 receiver path (1T1R).
766e155a4aSkettenis.Pp
77fb942e08SdamienThese are the modes the
78fb942e08Sdamien.Nm
79fb942e08Sdamiendriver can operate in:
80fb942e08Sdamien.Bl -tag -width "IBSS-masterXX"
81fb942e08Sdamien.It BSS mode
82fb942e08SdamienAlso known as
83fb942e08Sdamien.Em infrastructure
84fb942e08Sdamienmode, this is used when associating with an access point, through
85fb942e08Sdamienwhich all traffic passes.
86fb942e08SdamienThis mode is the default.
87fb942e08Sdamien.It monitor mode
88fb942e08SdamienIn this mode the driver is able to receive packets without
89fb942e08Sdamienassociating with an access point.
90fb942e08SdamienThis disables the internal receive filter and enables the card to
91fb942e08Sdamiencapture packets from networks which it wouldn't normally have access to,
92fb942e08Sdamienor to scan for access points.
93fb942e08Sdamien.El
94fb942e08Sdamien.Pp
954f8f8b8bSdamienThe
96fb942e08Sdamien.Nm
9702974897Sjmcdriver can be configured to use
986ed8ba4bSjmcWired Equivalent Privacy (WEP) or
9923b4b584SsthenWi-Fi Protected Access (WPA1 and WPA2).
10023b4b584SsthenWPA2 is the current encryption standard for wireless networks.
10123b4b584SsthenIt is strongly recommended that neither WEP nor WPA1
10223b4b584Ssthenare used as the sole mechanism to secure wireless communication,
10323b4b584Ssthendue to serious weaknesses.
10423b4b584SsthenWPA1 is disabled by default and may be enabled using the option
10523b4b584Ssthen.Qq Cm wpaprotos Ar wpa1,wpa2 .
10623b4b584SsthenFor standard WPA networks which use pre-shared keys (PSK),
10723b4b584Ssthenkeys are configured using the
10823b4b584Ssthen.Qq Cm wpakey
10923b4b584Ssthenoption.
11023b4b584SsthenWPA-Enterprise networks require use of the wpa_supplicant package.
1114f8f8b8bSdamienThe
1124f8f8b8bSdamien.Nm
1138dcbf757Sdamiendriver offloads both encryption and decryption of unicast data frames to the
1148dcbf757Sdamienhardware for the CCMP cipher.
115fb942e08Sdamien.Pp
116583928f6SjmcIn BSS mode the driver supports powersave mode
117583928f6Sjmcand background scanning;
118583928f6Sjmcsee
119416d9f2aSjmc.Xr ifconfig 8 .
120416d9f2aSjmc.Pp
121fb942e08SdamienThe
122fb942e08Sdamien.Nm
123fb942e08Sdamiendriver can be configured at runtime with
124fb942e08Sdamien.Xr ifconfig 8
125fb942e08Sdamienor on boot with
126e8a6e26fSjmc.Xr hostname.if 5 .
127fb942e08Sdamien.Sh FILES
128a35c7731SdamienThe driver needs at least version 5.6 of the following firmware files,
129df518f44Sdamienwhich are loaded when an interface is brought up:
130fb942e08Sdamien.Pp
131fb942e08Sdamien.Bl -tag -width Ds -offset indent -compact
132df518f44Sdamien.It Pa /etc/firmware/iwn-4965
133df518f44Sdamien.It Pa /etc/firmware/iwn-5000
134312d565eSdamien.It Pa /etc/firmware/iwn-5150
135f16141c2Sdamien.It Pa /etc/firmware/iwn-1000
136f16141c2Sdamien.It Pa /etc/firmware/iwn-6000
1374d24d574Sdamien.It Pa /etc/firmware/iwn-6050
138a35c7731Sdamien.It Pa /etc/firmware/iwn-6005
139a35c7731Sdamien.It Pa /etc/firmware/iwn-6030
1406e155a4aSkettenis.It Pa /etc/firmware/iwn-2030
14171aa1d4aSkettenis.It Pa /etc/firmware/iwn-2000
14271aa1d4aSkettenis.It Pa /etc/firmware/iwn-135
14371aa1d4aSkettenis.It Pa /etc/firmware/iwn-105
144fb942e08Sdamien.El
145fb942e08Sdamien.Pp
1468dcbf757SdamienThese firmware files are not free because Intel refuses to grant
147fb942e08Sdamiendistribution rights without contractual obligations.
148fb942e08SdamienAs a result, even though
149fb942e08Sdamien.Ox
1508dcbf757Sdamienincludes the driver, the firmware files cannot be included and
1518dcbf757Sdamienusers have to download these files on their own.
152fb942e08Sdamien.Pp
1531e06dbebSsthenA prepackaged version of the firmware can be installed using
154565a3eb6Sjmc.Xr fw_update 8 .
155fb942e08Sdamien.Sh EXAMPLES
156f0f562a5SjmcThe following example scans for available networks:
157f0f562a5Sjmc.Pp
158f0f562a5Sjmc.Dl # ifconfig iwn0 scan
159f0f562a5Sjmc.Pp
160fb942e08SdamienThe following
161fb942e08Sdamien.Xr hostname.if 5
162f0f562a5Sjmcexample configures iwn0 to join network
163f0f562a5Sjmc.Dq mynwid ,
164f0f562a5Sjmcusing WPA key
165f0f562a5Sjmc.Dq mywpakey ,
166f0f562a5Sjmcobtaining an IP address using DHCP:
167fb942e08Sdamien.Bd -literal -offset indent
168d09093c1Sknjoin mynwid wpakey mywpakey
169b6ef1ff8Skninet autoconf
170fb942e08Sdamien.Ed
171fb942e08Sdamien.Sh DIAGNOSTICS
172fb942e08Sdamien.Bl -diag
173b07071f0Stedu.It "iwn0: device timeout"
174fb942e08SdamienA frame dispatched to the hardware for transmission did not complete in time.
175fb942e08SdamienThe driver will reset the hardware.
176fb942e08SdamienThis should not happen.
177b07071f0Stedu.It "iwn0: fatal firmware error"
178fb942e08SdamienFor some reason, the firmware crashed.
179fb942e08SdamienThe driver will reset the hardware.
180fb942e08SdamienThis should not happen.
181b07071f0Stedu.It "iwn0: radio is disabled by hardware switch"
182fb942e08SdamienThe radio transmitter is off and thus no packet can go out.
183fb942e08SdamienThe driver will reset the hardware.
184fb942e08SdamienMake sure the laptop radio switch is on.
185e8cc656fSstsp.It "iwn0: could not read firmware ... (error N)"
186fb942e08SdamienFor some reason, the driver was unable to read the firmware image from the
187fb942e08Sdamienfilesystem.
188fb942e08SdamienThe file might be missing or corrupted.
189ff7cb8ebSstsp.It "iwn0: firmware too short: N bytes"
190fb942e08SdamienThe firmware image is corrupted and can't be loaded into the adapter.
191b07071f0Stedu.It "iwn0: could not load firmware"
192fb942e08SdamienAn attempt to load the firmware into the adapter failed.
193fb942e08SdamienThe driver will reset the hardware.
194fb942e08Sdamien.El
195fb942e08Sdamien.Sh SEE ALSO
196fb942e08Sdamien.Xr arp 4 ,
197fb942e08Sdamien.Xr ifmedia 4 ,
198fb942e08Sdamien.Xr intro 4 ,
199fb942e08Sdamien.Xr netintro 4 ,
200fb942e08Sdamien.Xr pci 4 ,
201fb942e08Sdamien.Xr hostname.if 5 ,
202e37f152cSjmc.Xr ifconfig 8
2032701ac3fStj.Sh HISTORY
2042701ac3fStjThe
2052701ac3fStj.Nm
2062701ac3fStjdevice driver first appeared in
2072701ac3fStj.Ox 4.3 .
208fb942e08Sdamien.Sh AUTHORS
209fb942e08SdamienThe
210fb942e08Sdamien.Nm
211fb942e08Sdamiendriver was written by
212c110737dSmillert.An Damien Bergamini Aq Mt damien.bergamini@free.fr .
2136c47270dSjmc.Sh CAVEATS
2142dd00630Sjmc802.11n operation is currently limited to data rates MCS 0 to MCS 7.
215