13971d07bSSam Leffler.\" Copyright (c) 2004-2006 23971d07bSSam Leffler.\" Damien Bergamini <damien.bergamini@free.fr>. All rights reserved. 33971d07bSSam Leffler.\" 43971d07bSSam Leffler.\" Redistribution and use in source and binary forms, with or without 53971d07bSSam Leffler.\" modification, are permitted provided that the following conditions 63971d07bSSam Leffler.\" are met: 73971d07bSSam Leffler.\" 1. Redistributions of source code must retain the above copyright 83971d07bSSam Leffler.\" notice unmodified, this list of conditions, and the following 93971d07bSSam Leffler.\" disclaimer. 103971d07bSSam Leffler.\" 2. Redistributions in binary form must reproduce the above copyright 113971d07bSSam Leffler.\" notice, this list of conditions and the following disclaimer in the 123971d07bSSam Leffler.\" documentation and/or other materials provided with the distribution. 133971d07bSSam Leffler.\" 143971d07bSSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 153971d07bSSam Leffler.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 163971d07bSSam Leffler.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 173971d07bSSam Leffler.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 183971d07bSSam Leffler.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 193971d07bSSam Leffler.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 203971d07bSSam Leffler.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 213971d07bSSam Leffler.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 223971d07bSSam Leffler.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 233971d07bSSam Leffler.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 243971d07bSSam Leffler.\" SUCH DAMAGE. 253971d07bSSam Leffler.\" 263971d07bSSam Leffler.\" $FreeBSD$ 273971d07bSSam Leffler.\" 283971d07bSSam Leffler.Dd Apri 13, 2008 293971d07bSSam Leffler.Os 303971d07bSSam Leffler.Dt IWN 4 313971d07bSSam Leffler.Sh NAME 323971d07bSSam Leffler.Nm iwn 333971d07bSSam Leffler.Nd "Intel Wireless WiFI Link 4965AGN IEEE 802.11n driver" 343971d07bSSam Leffler.Sh SYNOPSIS 353971d07bSSam LefflerTo compile this driver into the kernel, 363971d07bSSam Lefflerinclude the following lines in your 373971d07bSSam Lefflerkernel configuration file: 383971d07bSSam Leffler.Bd -ragged -offset indent 393971d07bSSam Leffler.Cd "device iwn" 403971d07bSSam Leffler.Cd "device iwnfw" 413971d07bSSam Leffler.Cd "device pci" 423971d07bSSam Leffler.Cd "device wlan" 433971d07bSSam Leffler.Cd "device firmware" 443971d07bSSam Leffler.Ed 453971d07bSSam Leffler.Pp 463971d07bSSam LefflerAlternatively, to load the driver as a 473971d07bSSam Lefflermodule at boot time, place the following line in 483971d07bSSam Leffler.Xr loader.conf 5 : 493971d07bSSam Leffler.Bd -literal -offset indent 503971d07bSSam Lefflerif_iwn_load="YES" 513971d07bSSam Leffler.Ed 523971d07bSSam Leffler.Pp 533971d07bSSam LefflerIn both cases, place the following line in 543971d07bSSam Leffler.Xr loader.conf 5 553971d07bSSam Lefflerto acknowledge the firmware license (see below): 563971d07bSSam Leffler.Bd -literal -offset indent 573971d07bSSam Lefflerlegal.intel_iwn.license_ack=1 583971d07bSSam Leffler.Ed 593971d07bSSam Leffler.Sh DESCRIPTION 603971d07bSSam LefflerThe 613971d07bSSam Leffler.Nm 623971d07bSSam Lefflerdriver provides support for 633971d07bSSam Leffler.Tn Intel 643971d07bSSam LefflerWireless WiFI Link 4965AGN PCI-Express network adapters. 653971d07bSSam Leffler.Nm 663971d07bSSam Lefflersupports 673971d07bSSam Leffler.Cm station , 683971d07bSSam Leffler.Cm adhoc , 693971d07bSSam Lefflerand 703971d07bSSam Leffler.Cm monitor 713971d07bSSam Lefflermode operation. 723971d07bSSam LefflerOnly one virtual interface may be configured at any time. 733971d07bSSam LefflerFor more information on configuring this device, see 743971d07bSSam Leffler.Xr ifconfig 8 . 753971d07bSSam Leffler.Pp 763971d07bSSam LefflerThis driver requires the firmware built with the 773971d07bSSam Leffler.Nm iwnfw 783971d07bSSam Lefflermodule to work. 793971d07bSSam LefflerFor the loaded firmware to be enabled for use the license at 803971d07bSSam Leffler.Pa /usr/share/doc/legal/intel_iwn/LICENSE 813971d07bSSam Lefflermust be agreed by adding the following line to 823971d07bSSam Leffler.Xr loader.conf 5 : 833971d07bSSam Leffler.Pp 843971d07bSSam Leffler.Dl "legal.intel_iwn.license_ack=1" 853971d07bSSam Leffler.Sh FILES 863971d07bSSam Leffler.Bl -tag -width ".Pa /usr/share/doc/legal/intel_iwn/LICENSE" -compact 873971d07bSSam Leffler.It Pa /usr/share/doc/legal/intel_iwn/LICENSE 883971d07bSSam Leffler.Nm 893971d07bSSam Lefflerfirmware license 903971d07bSSam Leffler.El 913971d07bSSam Leffler.Sh EXAMPLES 923971d07bSSam LefflerJoin an existing BSS network (i.e., connect to an access point): 933971d07bSSam Leffler.Pp 943971d07bSSam Leffler.Bd -literal -offset indent 953971d07bSSam Lefflerifconfig wlan create wlandev iwn0 inet 192.168.0.20 \e 963971d07bSSam Leffler netmask 0xffffff00 973971d07bSSam Leffler.Ed 983971d07bSSam Leffler.Pp 993971d07bSSam LefflerJoin a specific BSS network with network name 1003971d07bSSam Leffler.Dq Li my_net : 1013971d07bSSam Leffler.Pp 1023971d07bSSam Leffler.Dl "ifconfig wlan create wlandev iwn0 ssid my_net up" 1033971d07bSSam Leffler.Pp 1043971d07bSSam LefflerJoin a specific BSS network with 64-bit WEP encryption: 1053971d07bSSam Leffler.Bd -literal -offset indent 1063971d07bSSam Lefflerifconfig wlan create wlandev iwn0 ssid my_net \e 1073971d07bSSam Leffler wepmode on wepkey 0x1234567890 weptxkey 1 up 1083971d07bSSam Leffler.Ed 1093971d07bSSam Leffler.Pp 1103971d07bSSam LefflerJoin a specific BSS network with 128-bit WEP encryption: 1113971d07bSSam Leffler.Bd -literal -offset indent 1123971d07bSSam Lefflerifconfig wlan create wlandev iwn0 wlanmode adhoc ssid my_net \e 1133971d07bSSam Leffler wepmode on wepkey 0x01020304050607080910111213 weptxkey 1 1143971d07bSSam Leffler.Ed 1153971d07bSSam Leffler.Sh DIAGNOSTICS 1163971d07bSSam Leffler.Bl -diag 1173971d07bSSam Leffler.It "iwn%d: device timeout" 1183971d07bSSam LefflerThe driver will reset the hardware. 1193971d07bSSam LefflerThis should not happen. 1203971d07bSSam Leffler.It "iwn%d: firmware error" 1213971d07bSSam LefflerThe onboard microcontroller crashed for some reason. 1223971d07bSSam LefflerThe driver will reset the hardware. 1233971d07bSSam LefflerThis should not happen. 1243971d07bSSam Leffler.It "iwn%d: timeout waiting for firmware initialization to complete" 1253971d07bSSam LefflerThe onboard microcontroller failed to initialize in time. 1263971d07bSSam LefflerThis should not happen. 1273971d07bSSam Leffler.It "iwn%d: could not load firmware image '%s'" 1283971d07bSSam LefflerThe driver failed to load the firmware image using the 1293971d07bSSam Leffler.Xr firmware 9 1303971d07bSSam Lefflersubsystem. 1313971d07bSSam LefflerVerify the 1323971d07bSSam Leffler.Xr iwnfw 4 1333971d07bSSam Lefflerfirmware module is installed and the license agreement 1343971d07bSSam Leffler.Xr loader 8 1353971d07bSSam Lefflertunable has been set. 1363971d07bSSam Leffler.It "iwn%d: could not load boot firmware" 1373971d07bSSam LefflerAn attempt to upload the boot firmware image to the onboard microcontroller 1383971d07bSSam Lefflerfailed. 1393971d07bSSam LefflerThis should not happen. 1403971d07bSSam Leffler.It "iwn%d: could not load microcode" 1413971d07bSSam LefflerAn attempt to upload the microcode image to the onboard microcontroller failed. 1423971d07bSSam LefflerThis should not happen. 1433971d07bSSam Leffler.It "iwn%d: could not load main firmware" 1443971d07bSSam LefflerAn attempt to upload the main firmware image to the onboard microcontroller 1453971d07bSSam Lefflerfailed. 1463971d07bSSam LefflerThis should not happen. 1473971d07bSSam Leffler.El 1483971d07bSSam Leffler.Sh SEE ALSO 1493971d07bSSam Leffler.Xr iwnfw 4 , 1503971d07bSSam Leffler.Xr pci 4 , 1513971d07bSSam Leffler.Xr wlan 4 , 1523971d07bSSam Leffler.Xr wlan_ccmp 4 , 1533971d07bSSam Leffler.Xr wlan_tkip 4 , 1543971d07bSSam Leffler.Xr wlan_wep 4 , 1553971d07bSSam Leffler.Xr ifconfig 8 , 1563971d07bSSam Leffler.Xr wpa_supplicant 8 . 1573971d07bSSam Leffler.Sh AUTHORS 1583971d07bSSam LefflerThe original 1593971d07bSSam Leffler.Nm 1603971d07bSSam Lefflerdriver was written by 1613971d07bSSam Leffler.An Damien Bergamini Aq damien.bergamini@free.fr 162