xref: /freebsd/share/man/man4/iwn.4 (revision 545dbf9d5fadfab591350c7c504b8e4bd113ba7b)
1*545dbf9dSAlexander Ziaee.\"-
2*545dbf9dSAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause
3*545dbf9dSAlexander Ziaee.\"
43971d07bSSam Leffler.\" Copyright (c) 2004-2006
53971d07bSSam Leffler.\"	Damien Bergamini <damien.bergamini@free.fr>. All rights reserved.
63971d07bSSam Leffler.\"
73971d07bSSam Leffler.\" Redistribution and use in source and binary forms, with or without
83971d07bSSam Leffler.\" modification, are permitted provided that the following conditions
93971d07bSSam Leffler.\" are met:
103971d07bSSam Leffler.\" 1. Redistributions of source code must retain the above copyright
113971d07bSSam Leffler.\"    notice unmodified, this list of conditions, and the following
123971d07bSSam Leffler.\"    disclaimer.
133971d07bSSam Leffler.\" 2. Redistributions in binary form must reproduce the above copyright
143971d07bSSam Leffler.\"    notice, this list of conditions and the following disclaimer in the
153971d07bSSam Leffler.\"    documentation and/or other materials provided with the distribution.
163971d07bSSam Leffler.\"
173971d07bSSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
183971d07bSSam Leffler.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
193971d07bSSam Leffler.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
203971d07bSSam Leffler.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
213971d07bSSam Leffler.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
223971d07bSSam Leffler.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
233971d07bSSam Leffler.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
243971d07bSSam Leffler.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
253971d07bSSam Leffler.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
263971d07bSSam Leffler.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
273971d07bSSam Leffler.\" SUCH DAMAGE.
283971d07bSSam Leffler.\"
29*545dbf9dSAlexander Ziaee.Dd October 17, 2024
303971d07bSSam Leffler.Dt IWN 4
31aa12cea2SUlrich Spörlein.Os
323971d07bSSam Leffler.Sh NAME
333971d07bSSam Leffler.Nm iwn
3431876e45SBernhard Schmidt.Nd Intel IEEE 802.11n wireless network driver
353971d07bSSam Leffler.Sh SYNOPSIS
363971d07bSSam LefflerTo compile this driver into the kernel,
373971d07bSSam Lefflerinclude the following lines in your
383971d07bSSam Lefflerkernel configuration file:
393971d07bSSam Leffler.Bd -ragged -offset indent
403971d07bSSam Leffler.Cd "device iwn"
413971d07bSSam Leffler.Cd "device pci"
423971d07bSSam Leffler.Cd "device wlan"
433971d07bSSam Leffler.Cd "device firmware"
443971d07bSSam Leffler.Ed
453971d07bSSam Leffler.Pp
46613628c4SChristian BruefferYou also need to select a firmware for your device.
47613628c4SChristian BruefferChoose one from:
482267cb3dSRui Paulo.Bd -ragged -offset indent
49c7ea7c46SRebecca Cran.Cd "device iwn1000fw"
50fc1dccd5SChristian Brueffer.Cd "device iwn100fw"
51aa12af34SGavin Atkinson.Cd "device iwn105fw"
52aa12af34SGavin Atkinson.Cd "device iwn135fw"
53479b9a60SChristian Brueffer.Cd "device iwn2000fw"
54479b9a60SChristian Brueffer.Cd "device iwn2030fw"
55479b9a60SChristian Brueffer.Cd "device iwn4965fw"
562267cb3dSRui Paulo.Cd "device iwn5000fw"
57c7ea7c46SRebecca Cran.Cd "device iwn5150fw"
58c7ea7c46SRebecca Cran.Cd "device iwn6000fw"
5931876e45SBernhard Schmidt.Cd "device iwn6000g2afw"
6031876e45SBernhard Schmidt.Cd "device iwn6000g2bfw"
612833a731SBernhard Schmidt.Cd "device iwn6050fw"
622267cb3dSRui Paulo.Ed
632267cb3dSRui Paulo.Pp
642267cb3dSRui PauloOr you can use
652267cb3dSRui Paulo.Bd -ragged -offset indent
662267cb3dSRui Paulo.Cd "device iwnfw"
672267cb3dSRui Paulo.Ed
682267cb3dSRui Paulo.Pp
692267cb3dSRui Pauloto include them all.
702267cb3dSRui Paulo.Pp
713971d07bSSam LefflerAlternatively, to load the driver as a
72613628c4SChristian Brueffermodule at boot time, place the following lines in
733971d07bSSam Leffler.Xr loader.conf 5 :
743971d07bSSam Leffler.Bd -literal -offset indent
753971d07bSSam Lefflerif_iwn_load="YES"
76c7ea7c46SRebecca Craniwn1000fw_load="YES"
77fc1dccd5SChristian Bruefferiwn100fw_load="YES"
78aa12af34SGavin Atkinsoniwn105fw_load="YES"
79aa12af34SGavin Atkinsoniwn135fw_load="YES"
80479b9a60SChristian Bruefferiwn2000fw_load="YES"
81479b9a60SChristian Bruefferiwn2030fw_load="YES"
82479b9a60SChristian Bruefferiwn4965fw_load="YES"
832267cb3dSRui Pauloiwn5000fw_load="YES"
84c7ea7c46SRebecca Craniwn5150fw_load="YES"
85c7ea7c46SRebecca Craniwn6000fw_load="YES"
8631876e45SBernhard Schmidtiwn6000g2afw_load="YES"
8731876e45SBernhard Schmidtiwn6000g2bfw_load="YES"
882833a731SBernhard Schmidtiwn6050fw_load="YES"
893971d07bSSam Leffler.Ed
903971d07bSSam Leffler.Sh DESCRIPTION
913971d07bSSam LefflerThe
923971d07bSSam Leffler.Nm
93*545dbf9dSAlexander Ziaeedriver supports
9409301268SGleb Smirnoff.Cm station
953971d07bSSam Lefflerand
963971d07bSSam Leffler.Cm monitor
973971d07bSSam Lefflermode operation.
983971d07bSSam LefflerOnly one virtual interface may be configured at any time.
993971d07bSSam LefflerFor more information on configuring this device, see
1003971d07bSSam Leffler.Xr ifconfig 8 .
1013971d07bSSam Leffler.Pp
1023971d07bSSam LefflerThis driver requires the firmware built with the
1033971d07bSSam Leffler.Nm iwnfw
1043971d07bSSam Lefflermodule to work.
105*545dbf9dSAlexander Ziaee.Sh HARDWARE
106*545dbf9dSAlexander ZiaeeThe
107*545dbf9dSAlexander Ziaee.Nm
108*545dbf9dSAlexander Ziaeedriver provides support for:
109*545dbf9dSAlexander Ziaee.Pp
110*545dbf9dSAlexander Ziaee.Bl -bullet -compact
111*545dbf9dSAlexander Ziaee.It
112*545dbf9dSAlexander ZiaeeIntel Centrino Advanced-N 6200
113*545dbf9dSAlexander Ziaee.It
114*545dbf9dSAlexander ZiaeeIntel Centrino Advanced-N 6205
115*545dbf9dSAlexander Ziaee.It
116*545dbf9dSAlexander ZiaeeIntel Centrino Advanced-N 6230
117*545dbf9dSAlexander Ziaee.It
118*545dbf9dSAlexander ZiaeeIntel Centrino Advanced-N 6235
119*545dbf9dSAlexander Ziaee.It
120*545dbf9dSAlexander ZiaeeIntel Centrino Advanced-N + WiMAX 6250
121*545dbf9dSAlexander Ziaee.It
122*545dbf9dSAlexander ZiaeeIntel Centrino Ultimate-N 6300
123*545dbf9dSAlexander Ziaee.It
124*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 100
125*545dbf9dSAlexander Ziaee.It
126*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 105
127*545dbf9dSAlexander Ziaee.It
128*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 130
129*545dbf9dSAlexander Ziaee.It
130*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 135
131*545dbf9dSAlexander Ziaee.It
132*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 1000
133*545dbf9dSAlexander Ziaee.It
134*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 1030
135*545dbf9dSAlexander Ziaee.It
136*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 2200
137*545dbf9dSAlexander Ziaee.It
138*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 2230
139*545dbf9dSAlexander Ziaee.It
140*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 4965
141*545dbf9dSAlexander Ziaee.It
142*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 5100
143*545dbf9dSAlexander Ziaee.It
144*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 6150
145*545dbf9dSAlexander Ziaee.It
146*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 6200
147*545dbf9dSAlexander Ziaee.It
148*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N 6250
149*545dbf9dSAlexander Ziaee.It
150*545dbf9dSAlexander ZiaeeIntel Centrino Wireless-N + WiMAX 6150
151*545dbf9dSAlexander Ziaee.It
152*545dbf9dSAlexander ZiaeeIntel Ultimate N WiFi Link 5300
153*545dbf9dSAlexander Ziaee.It
154*545dbf9dSAlexander ZiaeeIntel Wireless WiFi Link 4965
155*545dbf9dSAlexander Ziaee.It
156*545dbf9dSAlexander ZiaeeIntel WiFi Link 5100
157*545dbf9dSAlexander Ziaee.It
158*545dbf9dSAlexander ZiaeeIntel WiMAX/WiFi Link 5150
159*545dbf9dSAlexander Ziaee.It
160*545dbf9dSAlexander ZiaeeIntel WiMAX/WiFi Link 5350
161*545dbf9dSAlexander Ziaee.El
1623971d07bSSam Leffler.Sh EXAMPLES
1633971d07bSSam LefflerJoin an existing BSS network (i.e., connect to an access point):
1643971d07bSSam Leffler.Bd -literal -offset indent
165*545dbf9dSAlexander Ziaee# ifconfig wlan create wlandev iwn0 inet 192.168.0.20 \e
1663971d07bSSam Leffler    netmask 0xffffff00
1673971d07bSSam Leffler.Ed
1683971d07bSSam Leffler.Pp
1693971d07bSSam LefflerJoin a specific BSS network with network name
170*545dbf9dSAlexander Ziaee.Ql my_net :
1713971d07bSSam Leffler.Pp
172*545dbf9dSAlexander Ziaee.Dl # ifconfig wlan create wlandev iwn0 ssid my_net up
1733971d07bSSam Leffler.Pp
1743971d07bSSam LefflerJoin a specific BSS network with 64-bit WEP encryption:
1753971d07bSSam Leffler.Bd -literal -offset indent
176*545dbf9dSAlexander Ziaee# ifconfig wlan create wlandev iwn0 ssid my_net \e
1773971d07bSSam Leffler	wepmode on wepkey 0x1234567890 weptxkey 1 up
1783971d07bSSam Leffler.Ed
1793971d07bSSam Leffler.Pp
1803971d07bSSam LefflerJoin a specific BSS network with 128-bit WEP encryption:
1813971d07bSSam Leffler.Bd -literal -offset indent
182*545dbf9dSAlexander Ziaee# ifconfig wlan create wlandev iwn0 wlanmode adhoc ssid my_net \e
1833971d07bSSam Leffler    wepmode on wepkey 0x01020304050607080910111213 weptxkey 1
1843971d07bSSam Leffler.Ed
1853971d07bSSam Leffler.Sh DIAGNOSTICS
1863971d07bSSam Leffler.Bl -diag
1873971d07bSSam Leffler.It "iwn%d: device timeout"
1883971d07bSSam LefflerThe driver will reset the hardware.
1893971d07bSSam LefflerThis should not happen.
1903971d07bSSam Leffler.It "iwn%d: firmware error"
1913971d07bSSam LefflerThe onboard microcontroller crashed for some reason.
1923971d07bSSam LefflerThe driver will reset the hardware.
1933971d07bSSam LefflerThis should not happen.
1943971d07bSSam Leffler.It "iwn%d: timeout waiting for firmware initialization to complete"
1953971d07bSSam LefflerThe onboard microcontroller failed to initialize in time.
1963971d07bSSam LefflerThis should not happen.
1973971d07bSSam Leffler.It "iwn%d: could not load firmware image '%s'"
1983971d07bSSam LefflerThe driver failed to load the firmware image using the
1993971d07bSSam Leffler.Xr firmware 9
2003971d07bSSam Lefflersubsystem.
2013971d07bSSam LefflerVerify the
2023971d07bSSam Leffler.Xr iwnfw 4
203f057099fSSam Lefflerfirmware module is present.
2043971d07bSSam Leffler.It "iwn%d: could not load boot firmware"
2053971d07bSSam LefflerAn attempt to upload the boot firmware image to the onboard microcontroller
2063971d07bSSam Lefflerfailed.
2073971d07bSSam LefflerThis should not happen.
2083971d07bSSam Leffler.It "iwn%d: could not load microcode"
2093971d07bSSam LefflerAn attempt to upload the microcode image to the onboard microcontroller failed.
2103971d07bSSam LefflerThis should not happen.
2113971d07bSSam Leffler.It "iwn%d: could not load main firmware"
2123971d07bSSam LefflerAn attempt to upload the main firmware image to the onboard microcontroller
2133971d07bSSam Lefflerfailed.
2143971d07bSSam LefflerThis should not happen.
2153971d07bSSam Leffler.El
2163971d07bSSam Leffler.Sh SEE ALSO
2173c29ede0SSam Leffler.Xr iwnfw 4 ,
2183971d07bSSam Leffler.Xr pci 4 ,
2193971d07bSSam Leffler.Xr wlan 4 ,
2203971d07bSSam Leffler.Xr wlan_ccmp 4 ,
2213971d07bSSam Leffler.Xr wlan_tkip 4 ,
2223971d07bSSam Leffler.Xr wlan_wep 4 ,
223*545dbf9dSAlexander Ziaee.Xr networking 7 ,
2243971d07bSSam Leffler.Xr ifconfig 8 ,
225dec7a1d5SChristian Brueffer.Xr wpa_supplicant 8
2263971d07bSSam Leffler.Sh AUTHORS
2273971d07bSSam LefflerThe original
2283971d07bSSam Leffler.Nm
2293971d07bSSam Lefflerdriver was written by
2306c899950SBaptiste Daroussin.An Damien Bergamini Aq Mt damien.bergamini@free.fr .
231