1.\" $OpenBSD: iwm.4,v 1.18 2016/05/28 18:31:14 stsp 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: May 28 2016 $ 19.Dt IWM 4 20.Os 21.Sh NAME 22.Nm iwm 23.Nd Intel 7000/8000 IEEE 802.11a/ac/b/g/n wireless network devices 24.Sh SYNOPSIS 25.Cd "iwm* at pci?" 26.Sh DESCRIPTION 27The 28.Nm 29driver provides support for 30.Tn Intel 31Wireless 7260, 7265, 3160, 3165, and 8260 PCIe Mini Card network adapters. 32.Pp 33These are the modes the 34.Nm 35driver can operate in: 36.Bl -tag -width "IBSS-masterXX" 37.It BSS mode 38Also known as 39.Em infrastructure 40mode, this is used when associating with an access point, through 41which all traffic passes. 42.\" This mode is the default. 43.\" .It monitor mode 44.\" In this mode the driver is able to receive packets without 45.\" associating with an access point. 46.\" This disables the internal receive filter and enables the card to 47.\" capture packets from networks which it wouldn't normally have access to, 48.\" or to scan for access points. 49.El 50.Pp 51The 52.Nm 53driver can be configured to use 54Wired Equivalent Privacy (WEP) or 55Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 56WPA is the current encryption standard for wireless networks. 57It is strongly recommended that WEP 58not be used as the sole mechanism 59to secure wireless communication, 60due to serious weaknesses in it. 61.Pp 62The 63.Nm 64driver can be configured at runtime with 65.Xr ifconfig 8 66or on boot with 67.Xr hostname.if 5 . 68.Sh FILES 69The driver needs one of the following firmware files, 70which are loaded when an interface is brought up: 71.Pp 72.Bl -tag -width Ds -offset indent -compact 73.It Pa /etc/firmware/iwm-3160-16 74.It Pa /etc/firmware/iwm-7260-16 75.It Pa /etc/firmware/iwm-7265-16 76.It Pa /etc/firmware/iwm-8000C-16 77.El 78.Pp 79These firmware files are not free because Intel refuses to grant 80distribution rights without contractual obligations. 81As a result, even though 82.Ox 83includes the driver, the firmware files cannot be included and 84users have to download these files on their own. 85.Pp 86A prepackaged version of the firmware can be installed using 87.Xr fw_update 1 . 88.Sh EXAMPLES 89The following example scans for available networks: 90.Pp 91.Dl # ifconfig iwm0 scan 92.Pp 93The following 94.Xr hostname.if 5 95example configures iwm0 to join network 96.Dq mynwid , 97using WPA key 98.Dq mywpakey , 99obtaining an IP address using DHCP: 100.Bd -literal -offset indent 101nwid mynwid 102wpakey mywpakey 103dhcp 104.Ed 105.Sh DIAGNOSTICS 106.Bl -diag 107.It "iwm0: device timeout" 108A frame dispatched to the hardware for transmission did not complete in time. 109The driver will reset the hardware. 110This should not happen. 111.It "iwm0: fatal firmware error" 112For some reason, the firmware crashed. 113The driver will reset the hardware. 114This should not happen. 115.It "iwm0: radio is disabled by hardware switch" 116The radio transmitter is off and thus no packet can go out. 117The driver will reset the hardware. 118Make sure the laptop radio switch is on. 119.It "iwm0: could not read firmware ... (error N)" 120For some reason, the driver was unable to read the firmware image from the 121filesystem. 122The file might be missing or corrupted. 123.It "iwm0: firmware too short: N bytes" 124The firmware image is corrupted and can't be loaded into the adapter. 125.It "iwm0: could not load firmware" 126An attempt to load the firmware into the adapter failed. 127The driver will reset the hardware. 128.El 129.Sh SEE ALSO 130.Xr arp 4 , 131.Xr ifmedia 4 , 132.Xr intro 4 , 133.Xr netintro 4 , 134.Xr pci 4 , 135.Xr hostname.if 5 , 136.Xr ifconfig 8 137.Sh HISTORY 138The 139.Nm 140device driver first appeared in 141.Ox 5.7 . 142.Sh CAVEATS 143802.11n operation is currently limited to data rates MCS 0 to MCS 7. 144.Pp 145The 146.Nm 147driver does not support any of the 802.11ac capabilities offered by 148the adapters. 149Additional work is required in 150.Xr ieee80211 9 151before those features can be supported. 152