2003-04-05 19:25:44 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2003 Tom Rhodes
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2009-03-26 06:12:04 +00:00
|
|
|
.Dd March 26, 2009
|
2003-04-05 19:25:44 +00:00
|
|
|
.Dt WLAN 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wlan
|
|
|
|
.Nd generic 802.11 link-layer support
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "device wlan"
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2004-12-08 17:47:32 +00:00
|
|
|
module provides generic code to support 802.11 drivers.
|
|
|
|
Where a device does not directly support 802.11 functionality
|
|
|
|
this layer fills in.
|
|
|
|
The
|
|
|
|
.Nm
|
2008-04-20 20:35:46 +00:00
|
|
|
module is required by all native 802.11 drivers as well as the
|
|
|
|
.Xr ndis 4
|
|
|
|
support.
|
2004-12-08 17:47:32 +00:00
|
|
|
.Pp
|
|
|
|
.Nm
|
2008-04-20 20:35:46 +00:00
|
|
|
supports multi-mode devices capable of
|
2004-12-08 17:47:32 +00:00
|
|
|
operating in both 2.4GHz and 5GHz bands and supports numerous
|
2008-04-20 20:35:46 +00:00
|
|
|
802.11 standards: 802.11a, 802.11b, 802.11g, and 802.11n.
|
2004-12-08 17:47:32 +00:00
|
|
|
The WPA, 802.11i, and 802.1x security protocols are supported
|
|
|
|
through a combination of in-kernel code and user-mode applications.
|
2008-04-20 20:35:46 +00:00
|
|
|
The WME/WMM multi-media protocols are supported entirely within
|
2004-12-08 17:47:32 +00:00
|
|
|
the
|
|
|
|
.Nm
|
|
|
|
module but require a suitably capable hardware device.
|
2008-04-20 20:35:46 +00:00
|
|
|
Likewise the 802.11h specification is supported only by suitably
|
|
|
|
capable devices.
|
2003-09-25 23:56:20 +00:00
|
|
|
.Pp
|
2008-04-20 20:35:46 +00:00
|
|
|
Drivers provide 802.11 functionality through
|
|
|
|
.Nm
|
|
|
|
interfaces that are created at runtime using interface cloning.
|
|
|
|
This is done with the
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Cm create
|
|
|
|
command or using the
|
2008-05-03 07:06:48 +00:00
|
|
|
.Va wlans_IFX
|
2008-04-20 20:35:46 +00:00
|
|
|
variable in
|
|
|
|
.Xr rc.conf 5 .
|
|
|
|
Some drivers support the creation of multiple
|
|
|
|
.Nm
|
|
|
|
interfaces that share the same underlying device;
|
|
|
|
this is the way by which ``multi-bss support'' is provided but it
|
|
|
|
can also be used to create WDS links and other interesting applications.
|
|
|
|
.Pp
|
|
|
|
There are several types of
|
2004-12-08 17:47:32 +00:00
|
|
|
.Nm
|
2008-04-20 20:35:46 +00:00
|
|
|
interfaces that may be created:
|
|
|
|
.Bl -tag -width monitor
|
|
|
|
.It Cm sta
|
|
|
|
A client station in an infrastructure bss
|
|
|
|
(i.e. one that associates to an access point).
|
|
|
|
.It Cm hostap
|
|
|
|
An access point in an infrastructure bss.
|
|
|
|
.It Cm adhoc
|
|
|
|
A station in an IBSS network.
|
|
|
|
.It Cm ahdemo
|
|
|
|
A station operating in ``adhoc demo mode''.
|
|
|
|
This is essentially an IBSS station that does not use management
|
|
|
|
frames (e.g. no beacons are transmitted).
|
|
|
|
An
|
|
|
|
.Cm ahdemo
|
|
|
|
interface is especially useful for applications that want to transmit
|
|
|
|
and receive raw 802.11 packets.
|
|
|
|
.It Cm monitor
|
|
|
|
An interface used exclusively for capturing 802.11 frames.
|
|
|
|
In particular this specified to have read-only properties
|
|
|
|
which enables it to be operated on frequencies where one
|
|
|
|
would otherwise not be allowed.
|
|
|
|
.It Cm wds
|
|
|
|
A station that passes 4-address 802.11 traffic for the purpose
|
|
|
|
of tunneling traffic over a wireless link.
|
|
|
|
Typically this station would share the same MAC address as a
|
|
|
|
.Cm hostap
|
|
|
|
interface.
|
|
|
|
It may be possible to create
|
|
|
|
.Cm wds
|
|
|
|
interfaces without a companion
|
|
|
|
.Cm hostap
|
|
|
|
interface but that is not guaranteed; one may need to create a
|
|
|
|
.Cm hostap
|
|
|
|
interface that does not send beacon frames before
|
|
|
|
.Cm wds
|
|
|
|
interfaces may be created.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
More types are planned to support
|
|
|
|
802.11s mesh nodes (station and ap).
|
|
|
|
Note that an interface's type cannot be changed once it is created.
|
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
defines several mechanisms by which plugin modules may
|
|
|
|
be used to extend its' functionality.
|
2004-12-08 17:47:32 +00:00
|
|
|
Cryptographic support such as WEP, TKIP, and AES-CCMP are implemented
|
2008-04-20 20:35:46 +00:00
|
|
|
as standalone modules (if not statically configured into a system)
|
|
|
|
that register with
|
|
|
|
.Nm .
|
2004-12-08 17:47:32 +00:00
|
|
|
Similarly there is an authenticator framework for defining 802.11
|
|
|
|
authentication services and a framework for integrating access
|
|
|
|
control mechanisms specific to the 802.11 protocol.
|
|
|
|
.Sh DEBUGGING
|
2008-04-20 20:35:46 +00:00
|
|
|
Debugging controls are available using:
|
2004-06-16 08:33:57 +00:00
|
|
|
.Pp
|
2004-12-08 17:47:32 +00:00
|
|
|
.Dl "sysctl net.wlan.X.debug=mask"
|
|
|
|
.Pp
|
2005-01-12 10:14:43 +00:00
|
|
|
where
|
|
|
|
.Ar X
|
|
|
|
is the number of the
|
2004-12-08 17:47:32 +00:00
|
|
|
.Nm
|
|
|
|
instance and mask is a bit-or of control bits that determine which
|
|
|
|
debugging messages to enable.
|
|
|
|
For example,
|
2005-01-12 10:14:43 +00:00
|
|
|
.Pp
|
2004-12-08 17:47:32 +00:00
|
|
|
.Dl "sysctl net.wlan.0.debug=0x00200000"
|
|
|
|
.Pp
|
|
|
|
enables debugging messages related to scanning for an access point,
|
|
|
|
adhoc neighbor, or an unoccupied channel when operation as an access point.
|
|
|
|
The
|
2008-04-20 20:35:46 +00:00
|
|
|
.Xr wlandebug 8
|
2004-12-08 17:47:32 +00:00
|
|
|
tool provides a more user-friendly mechanism for doing the same thing.
|
2008-04-20 20:35:46 +00:00
|
|
|
Note that
|
2003-09-25 23:56:20 +00:00
|
|
|
.Pp
|
2008-04-20 20:35:46 +00:00
|
|
|
.Dl "sysctl net.wlan.debug=mask"
|
2004-06-16 08:33:57 +00:00
|
|
|
.Pp
|
2008-04-20 20:35:46 +00:00
|
|
|
defines the initial value of the debugging flags for each cloned
|
|
|
|
.Nm
|
|
|
|
interface; this is useful to enable debug messages during interface creation.
|
2003-04-05 19:25:44 +00:00
|
|
|
.Sh COMPATIBILITY
|
|
|
|
The module name of
|
|
|
|
.Nm
|
|
|
|
was used to be compatible with
|
|
|
|
.Nx .
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr an 4 ,
|
2003-07-18 11:40:41 +00:00
|
|
|
.Xr ath 4 ,
|
2005-11-26 00:40:57 +00:00
|
|
|
.Xr ipw 4 ,
|
|
|
|
.Xr iwi 4 ,
|
2008-04-20 20:35:46 +00:00
|
|
|
.Xr iwn 4 ,
|
2009-03-26 04:17:35 +00:00
|
|
|
.Xr malo 4 ,
|
2005-11-26 00:47:07 +00:00
|
|
|
.Xr netintro 4 ,
|
2005-11-26 00:40:57 +00:00
|
|
|
.Xr ral 4 ,
|
2007-06-06 07:58:03 +00:00
|
|
|
.Xr rum 4 ,
|
2005-11-26 00:40:57 +00:00
|
|
|
.Xr ural 4 ,
|
2004-12-08 17:47:32 +00:00
|
|
|
.Xr wi 4 ,
|
2005-01-12 10:22:58 +00:00
|
|
|
.Xr wlan_acl 4 ,
|
2004-12-08 17:47:32 +00:00
|
|
|
.Xr wlan_ccmp 4 ,
|
2005-01-12 10:22:58 +00:00
|
|
|
.Xr wlan_tkip 4 ,
|
|
|
|
.Xr wlan_wep 4 ,
|
2007-09-06 20:15:04 +00:00
|
|
|
.Xr wlan_xauth 4 ,
|
2007-11-13 16:42:22 +00:00
|
|
|
.Xr wpi 4 ,
|
2007-09-06 20:15:04 +00:00
|
|
|
.Xr zyd 4
|
2003-04-05 19:25:44 +00:00
|
|
|
.Sh STANDARDS
|
2008-04-20 20:35:46 +00:00
|
|
|
More information can be found in the IEEE 802.11 Standards.
|
2003-04-05 19:25:44 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh AUTHORS
|
2004-12-08 17:47:32 +00:00
|
|
|
Atsushi Onoe is the author of original
|
2003-04-05 19:25:44 +00:00
|
|
|
.Nx
|
2004-12-08 17:47:32 +00:00
|
|
|
software from which this work began.
|
2003-04-05 19:25:44 +00:00
|
|
|
.An -nosplit
|
2004-12-08 17:47:32 +00:00
|
|
|
.An Sam Leffler
|
|
|
|
brought the code into
|
|
|
|
.Fx
|
|
|
|
and then rewrote it to support multi-mode devices,
|
2008-04-20 20:35:46 +00:00
|
|
|
802.11g, 802.11n, WPA/802.11i, WME, multi-bss, and
|
|
|
|
add the extensible frameworks
|
2004-12-08 17:47:32 +00:00
|
|
|
for cryptographic, authentication, and access control plugins.
|
2003-04-05 19:25:44 +00:00
|
|
|
This manual page was written by
|
2003-07-18 11:40:41 +00:00
|
|
|
.An Tom Rhodes Aq trhodes@FreeBSD.org .
|