xref: /freebsd/share/man/man4/wlan.4 (revision db612abe8df3355d1eb23bb3b50fdd97bc21e979)
1.\"
2.\" Copyright (c) 2003 Tom Rhodes
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
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.
13.\"
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
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD$
27.\"
28.Dd April 12, 2008
29.Dt WLAN 4
30.Os
31.Sh NAME
32.Nm wlan
33.Nd generic 802.11 link-layer support
34.Sh SYNOPSIS
35.Cd "device wlan"
36.Sh DESCRIPTION
37The
38.Nm
39module provides generic code to support 802.11 drivers.
40Where a device does not directly support 802.11 functionality
41this layer fills in.
42The
43.Nm
44module is required by all native 802.11 drivers as well as the
45.Xr ndis 4
46support.
47.Pp
48.Nm
49supports multi-mode devices capable of
50operating in both 2.4GHz and 5GHz bands and supports numerous
51802.11 standards: 802.11a, 802.11b, 802.11g, and 802.11n.
52The WPA, 802.11i, and 802.1x security protocols are supported
53through a combination of in-kernel code and user-mode applications.
54The WME/WMM multi-media protocols are supported entirely within
55the
56.Nm
57module but require a suitably capable hardware device.
58Likewise the 802.11h specification is supported only by suitably
59capable devices.
60.Pp
61Drivers provide 802.11 functionality through
62.Nm
63interfaces that are created at runtime using interface cloning.
64This is done with the
65.Xr ifconfig 8
66.Cm create
67command or using the
68.Va vaps_IFX
69variable in
70.Xr rc.conf 5 .
71Some drivers support the creation of multiple
72.Nm
73interfaces that share the same underlying device;
74this is the way by which ``multi-bss support'' is provided but it
75can also be used to create WDS links and other interesting applications.
76.Pp
77There are several types of
78.Nm
79interfaces that may be created:
80.Bl -tag -width monitor
81.It Cm sta
82A client station in an infrastructure bss
83(i.e. one that associates to an access point).
84.It Cm hostap
85An access point in an infrastructure bss.
86.It Cm adhoc
87A station in an IBSS network.
88.It Cm ahdemo
89A station operating in ``adhoc demo mode''.
90This is essentially an IBSS station that does not use management
91frames (e.g. no beacons are transmitted).
92An
93.Cm ahdemo
94interface is especially useful for applications that want to transmit
95and receive raw 802.11 packets.
96.It Cm monitor
97An interface used exclusively for capturing 802.11 frames.
98In particular this specified to have read-only properties
99which enables it to be operated on frequencies where one
100would otherwise not be allowed.
101.It Cm wds
102A station that passes 4-address 802.11 traffic for the purpose
103of tunneling traffic over a wireless link.
104Typically this station would share the same MAC address as a
105.Cm hostap
106interface.
107It may be possible to create
108.Cm wds
109interfaces without a companion
110.Cm hostap
111interface but that is not guaranteed; one may need to create a
112.Cm hostap
113interface that does not send beacon frames before
114.Cm wds
115interfaces may be created.
116.El
117.Pp
118More types are planned to support
119802.11s mesh nodes (station and ap).
120Note that an interface's type cannot be changed once it is created.
121.Pp
122.Nm
123defines several mechanisms by which plugin modules may
124be used to extend its' functionality.
125Cryptographic support such as WEP, TKIP, and AES-CCMP are implemented
126as standalone modules (if not statically configured into a system)
127that register with
128.Nm .
129Similarly there is an authenticator framework for defining 802.11
130authentication services and a framework for integrating access
131control mechanisms specific to the 802.11 protocol.
132.Sh DEBUGGING
133Debugging controls are available using:
134.Pp
135.Dl "sysctl net.wlan.X.debug=mask"
136.Pp
137where
138.Ar X
139is the number of the
140.Nm
141instance and mask is a bit-or of control bits that determine which
142debugging messages to enable.
143For example,
144.Pp
145.Dl "sysctl net.wlan.0.debug=0x00200000"
146.Pp
147enables debugging messages related to scanning for an access point,
148adhoc neighbor, or an unoccupied channel when operation as an access point.
149The
150.Xr wlandebug 8
151tool provides a more user-friendly mechanism for doing the same thing.
152Note that
153.Pp
154.Dl "sysctl net.wlan.debug=mask"
155.Pp
156defines the initial value of the debugging flags for each cloned
157.Nm
158interface; this is useful to enable debug messages during interface creation.
159.Sh COMPATIBILITY
160The module name of
161.Nm
162was used to be compatible with
163.Nx .
164.Sh SEE ALSO
165.Xr an 4 ,
166.Xr ath 4 ,
167.Xr bwi 4 ,
168.Xr ipw 4 ,
169.Xr iwi 4 ,
170.Xr iwn 4 ,
171.Xr mwl 4 ,
172.Xr netintro 4 ,
173.Xr ral 4 ,
174.Xr rum 4 ,
175.Xr ural 4 ,
176.Xr wi 4 ,
177.Xr wlan_acl 4 ,
178.Xr wlan_ccmp 4 ,
179.Xr wlan_tkip 4 ,
180.Xr wlan_wep 4 ,
181.Xr wlan_xauth 4 ,
182.Xr wpi 4 ,
183.Xr zyd 4
184.Sh STANDARDS
185More information can be found in the IEEE 802.11 Standards.
186.Sh HISTORY
187The
188.Nm
189driver first appeared in
190.Fx 5.0 .
191.Sh AUTHORS
192Atsushi Onoe is the author of original
193.Nx
194software from which this work began.
195.An -nosplit
196.An Sam Leffler
197brought the code into
198.Fx
199and then rewrote it to support multi-mode devices,
200802.11g, 802.11n, WPA/802.11i, WME, multi-bss, and
201add the extensible frameworks
202for cryptographic, authentication, and access control plugins.
203This manual page was written by
204.An Tom Rhodes Aq trhodes@FreeBSD.org .
205