]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - share/man/man4/mwl.4
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / share / man / man4 / mwl.4
1 .\"-
2 .\" Copyright (c) 2009 Sam Leffler, Errno Consulting
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 .\"    without modification.
11 .\" 2. Redistributions in binary form must reproduce at minimum a disclaimer
12 .\"    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13 .\"    redistribution must be conditioned upon including a substantially
14 .\"    similar Disclaimer requirement for further binary redistribution.
15 .\"
16 .\" NO WARRANTY
17 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 .\" LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20 .\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21 .\" THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 .\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 .\" THE POSSIBILITY OF SUCH DAMAGES.
28 .\"
29 .\" $FreeBSD$
30 .\"/
31 .Dd July 8, 2009
32 .Dt MWL 4
33 .Os
34 .Sh NAME
35 .Nm mwl
36 .Nd "Marvell 88W8363 IEEE 802.11n wireless network driver"
37 .Sh SYNOPSIS
38 To compile this driver into the kernel,
39 place the following lines in your
40 kernel configuration file:
41 .Bd -ragged -offset indent
42 .Cd "device mwl"
43 .Cd "device mwlfw"
44 .Cd "device wlan"
45 .Cd "device firmware"
46 .Ed
47 .Pp
48 Alternatively, to load the driver as a
49 module at boot time, place the following line in
50 .Xr loader.conf 5 :
51 .Bd -literal -offset indent
52 if_mwl_load="YES"
53 .Ed
54 .Sh DESCRIPTION
55 The
56 .Nm
57 driver provides support for IEEE 802.11n wireless network adapters based on
58 Marvell 88W8363 parts.
59 PCI and/or CardBus interfaces are supported.
60 .Pp
61 This driver requires the firmware built with the
62 .Nm mwlfw
63 module to work.
64 Normally this module is loaded on demand by the driver but it may
65 also be compiled into the kernel.
66 .Pp
67 Supported features include 802.11n, power management, BSS, MBSS,
68 and host-based access point operation modes.
69 All host/device interaction is via DMA.
70 .Pp
71 The
72 .Nm
73 driver encapsulates IP and ARP traffic as 802.11 frames, however
74 it can receive either 802.11 or 802.3 frames.
75 Devices support 802.11n, 802.11a, 802.11g, and 802.11b operation with
76 transmit speeds appropriate to each.
77 The actual transmit speed used is dependent on signal quality and the
78 .Dq "rate control"
79 algorithm implemented in the firmware.
80 All chips have hardware support for WEP,
81 AES-CCM, TKIP, and Michael cryptographic operations.
82 .Pp
83 The driver supports
84 .Cm station ,
85 .Cm hostap ,
86 .Cm mesh ,
87 and
88 .Cm wds
89 mode operation.
90 Multiple
91 .Cm hostap
92 virtual interfaces may be configured for simultaneous use.
93 When multiple interfaces are configured each may have a separate
94 mac address that is formed by setting the U/L bits in the mac
95 address assigned to the underlying device.
96 Any number of
97 .Cm wds
98 virtual interfaces may be configured together with
99 .Cm hostap
100 interfaces.
101 Multiple
102 .Cm station
103 interfaces may be operated together with
104 .Cm hostap
105 interfaces to construct a wireless repeater device.
106 For more information on configuring this device, see
107 .Xr ifconfig 8 .
108 .Pp
109 Devices supported by the
110 .Nm
111 driver come in either Cardbus or mini-PCI packages.
112 Wireless cards in Cardbus slots may be inserted and ejected on the fly.
113 .Sh EXAMPLES
114 Join an existing BSS network (ie: connect to an access point):
115 .Bd -literal -offset indent
116 ifconfig wlan create wlandev mwl0 inet 192.168.0.20 \e
117         netmask 0xffffff00"
118 .Ed
119 .Pp
120 Join a specific BSS network with network name
121 .Dq Li my_net :
122 .Bd -literal -offset indent
123 ifconfig wlan create wlandev mwl0 inet 192.168.0.20 \e
124         netmask 0xffffff00 ssid my_net"
125 .Ed
126 .Pp
127 Join a specific BSS network with WEP encryption:
128 .Bd -literal -offset indent
129 ifconfig wlan0 create wlandev mwl0
130 ifconfig wlan0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
131         wepmode on wepkey 0x8736639624
132 .Ed
133 .Pp
134 Create an 802.11g host-based access point:
135 .Bd -literal -offset indent
136 ifconfig wlan0 create wlandev mwl0 wlanmode hostap
137 ifconfig wlan0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
138         mode 11g
139 .Ed
140 .Pp
141 Create an 802.11a mesh station:
142 .Bd -literal -offset indent
143 ifconfig wlan0 create wlandev mwl0 wlanmode mesh
144 ifconfig wlan0 meshid my_mesh mode 11a inet 192.168.0.10/24
145 .Ed
146 .Pp
147 Create two virtual 802.11a host-based access points, one
148 with WEP enabled and one with no security, and bridge them to
149 the fxp0 (wired) device:
150 .Bd -literal -offset indent
151 ifconfig wlan0 create wlandev mwl0 wlanmode hostap \e
152         ssid paying-customers wepmode on wepkey 0x1234567890 \e
153         mode 11a up
154 ifconfig wlan1 create wlandev mwl0 wlanmode hostap bssid \e
155         ssid freeloaders up
156 ifconfig bridge0 create addm wlan0 addm wlan1 addm fxp0 up
157 .Ed
158 .Sh DIAGNOSTICS
159 .Bl -diag
160 .It "mwl%d: unable to setup builtin firmware"
161 There was a problem downloading and/or setting up the firmware.
162 The device is not usable.
163 .It "mwl%d: failed to setup descriptors: %d"
164 There was a problem setting up the DMA data structures.
165 This typically is caused by not being able to allocate contiguous memory.
166 .It "mwl%d: transmit timeout"
167 A frame dispatched to the hardware for transmission did not complete in time.
168 This should not happen.
169 .It "mwl%d: device not present"
170 A cardbus device was ejected while active; the request to the firmware
171 was not completed.
172 .El
173 .Sh SEE ALSO
174 .Xr cardbus 4 ,
175 .Xr intro 4 ,
176 .Xr mwlfw 4 ,
177 .Xr pci 4 ,
178 .Xr wlan 4 ,
179 .Xr wlan_ccmp 4 ,
180 .Xr wlan_tkip 4 ,
181 .Xr wlan_wep 4 ,
182 .Xr wlan_xauth 4 ,
183 .Xr hostapd 8 ,
184 .Xr ifconfig 8 ,
185 .Xr wpa_supplicant 8
186 .Sh HISTORY
187 The
188 .Nm
189 device driver first appeared in
190 .Fx 8.0 .
191 .Sh BUGS
192 The driver does not support power-save operation in station mode;
193 consequently power use is suboptimal (e.g. on a laptop).