2 .\" Copyright (c) 2003 Tom Rhodes
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/share/man/man4/wlan.4,v 1.8.2.1 2005/12/02 16:45:03 brueffer Exp $
27 .\" $DragonFly: src/share/man/man4/wlan.4,v 1.8 2008/07/26 16:25:41 swildner Exp $
34 .Nd generic 802.11 link-layer support
40 module provides generic code to support 802.11 drivers.
41 Where a device does not directly support 802.11 functionality
58 drivers, with other drivers to follow.
62 module supports multi-mode devices capable of
63 operating in both 2.4GHz and 5GHz bands and supports numerous
64 802.11 protocols: 802.11a, 802.11b, and 802.11g.
65 The WPA, 802.11i, and 802.1x security protocols are supported
66 through a combination of in-kernel code and user-mode applications.
67 The WME and WMM multi-media protocols are supported entirely within
70 module but require a suitably capable hardware device.
74 module defines several mechanisms by which plugin modules may
75 be used to extend functionality.
76 Cryptographic support such as WEP, TKIP, and AES-CCMP are implemented
77 as modules that are loaded on demand (if not statically configured
79 Similarly there is an authenticator framework for defining 802.11
80 authentication services and a framework for integrating access
81 control mechanisms specific to the 802.11 protocol.
83 If the associated interface is marked for debugging with, for example,
85 .Dl "ifconfig wi0 debug"
87 then messages describing the operation of the 802.11 protocol will
88 be sent to the console.
89 Complete debugging controls are available using:
91 .Dl "sysctl net.wlan.X.debug=mask"
97 instance and mask is a bit-or of control bits that determine which
98 debugging messages to enable.
101 .Dl "sysctl net.wlan.0.debug=0x00200000"
103 enables debugging messages related to scanning for an access point,
104 adhoc neighbor, or an unoccupied channel when operation as an access point.
107 .\"tool provides a more user-friendly mechanism for doing the same thing.
109 Many drivers will also display the contents of each 802.11 frame
110 sent and received when the interface is marked with
115 .Dl "ifconfig wi0 debug link2"
117 Beware however that some management frames may be processed entirely within
118 the device and not be received by the host.
120 Join an existing BSS network (i.e., connect to an access point):
122 .Dl "ifconfig iface 192.168.0.20/24"
124 Join a specific BSS network with network name
127 .Dl "ifconfig iface 192.168.0.20/24 ssid my_net"
129 Join a specific BSS network with 64 bit WEP encryption:
130 .Bd -literal -offset indent
131 ifconfig iface 192.168.0.20/24 ssid my_net wepmode on \e
132 wepkey 0x1234567890 weptxkey 1
135 Join a specific BSS network with 128 bit WEP encryption:
136 .Bd -literal -offset indent
137 ifconfig iface 192.168.0.20/24 ssid my_net wepmode on \e
138 wepkey 0x01020304050607080910111213 weptxkey 1
141 Join/create an 802.11b IBSS network:
142 .Bd -literal -offset indent
143 ifconfig iface 192.168.0.20/24 ssid my_net mediaopt adhoc
146 To debug a network setup, you may wish to enable interface debugging:
147 .Bd -literal -offset indent
148 ifconfig iface down debug up
151 To disable debugging, you may simply use:
152 .Bd -literal -offset indent
153 ifconfig iface down -debug up
156 .\"Create an 802.11g host-based access point:
157 .\".Bd -literal -offset indent
158 .\"ifconfig iface 192.168.0.20/24 ssid my_net mode 11g mediaopt hostap
161 .\"Create an 802.11a host-based access point with WEP enabled:
162 .\".Bd -literal -offset indent
163 .\"ifconfig iface 192.168.0.20/24 ssid my_net wepmode on \e
164 .\" wepkey 0x1234567890 weptxkey 1 mode 11a mediaopt hostap
167 .\"Create a host-based wireless bridge to fxp0:
168 .\".Bd -literal -offset indent
169 .\"ifconfig iface up ssid my_net media DS/11Mbps mediaopt hostap
170 .\"sysctl net.inet.ip.check_interface=0
171 .\"ifconfig bridge0 create
172 .\"ifconfig bridge0 addm iface1 addm iface2 up
175 .\"This will give you the same functionality as an access point.
179 was used to be compatible with
201 More information can be found in the IEEE 802.11 Standard.
205 driver first appeared in
208 Atsushi Onoe is the author of original
210 software from which this work began.
213 brought the code into
215 and then rewrote it to support multi-mode devices,
216 802.11g, WPA/802.11i, WME, and add the extensible frameworks
217 for cryptographic, authentication, and access control plugins.
218 This manual page was written by
219 .An Tom Rhodes Aq trhodes@FreeBSD.org .