xref: /freebsd/share/man/man4/mwl.4 (revision 7850fa71f55a16f414bb21163d80a03a5ab34522)
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 June 9, 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
38To compile this driver into the kernel,
39place the following lines in your
40kernel 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
48Alternatively, to load the driver as a
49module at boot time, place the following line in
50.Xr loader.conf 5 :
51.Bd -literal -offset indent
52if_mwl_load="YES"
53.Ed
54.Sh DESCRIPTION
55The
56.Nm
57driver provides support for IEEE 802.11n wireless network adapters based on
58Marvell 88W8363 parts.
59PCI and/or CardBus interfaces are supported.
60.Pp
61This driver requires the firmware built with the
62.Nm mwlfw
63module to work.
64Normally this module is loaded on demand by the driver but it may
65also be compiled into the kernel.
66.Pp
67Supported features include 802.11n, power management, BSS,
68and host-based access point operation modes.
69All host/device interaction is via DMA.
70.Pp
71The
72.Nm
73driver encapsulates IP and ARP traffic as 802.11 frames, however
74it can receive either 802.11 or 802.3 frames.
75Devices support 802.11n, 802.11a, 802.11g, and 802.11b operation with
76transmit speeds appropriate to each.
77The actual transmit speed used is dependent on signal quality and the
78.Dq "rate control"
79algorithm implemented in the firmware.
80All chips have hardware support for WEP,
81AES-CCM, TKIP, and Michael cryptographic operations.
82.Pp
83The driver supports
84.Cm station ,
85.Cm hostap ,
86and
87.Cm wds
88mode operation.
89Multiple
90.Cm hostap
91virtual interfaces may be configured for simultaneous use.
92When multiple interfaces are configured each may have a separate
93mac address that is formed by setting the U/L bits in the mac
94address assigned to the underlying device.
95Any number of
96.Cm wds
97virtual interfaces may be configured together with
98.Cm hostap
99interfaces.
100Multiple
101.Cm station
102interfaces may be operated together with
103.Cm hostap
104interfaces to construct a wireless repeater device.
105For more information on configuring this device, see
106.Xr ifconfig 8 .
107.Pp
108Devices supported by the
109.Nm
110driver come in either Cardbus or mini-PCI packages.
111Wireless cards in Cardbus slots may be inserted and ejected on the fly.
112.Sh EXAMPLES
113Join an existing BSS network (ie: connect to an access point):
114.Pp
115.Bd -literal -offset indent
116ifconfig wlan create wlandev mwl0 inet 192.168.0.20 \e
117	netmask 0xffffff00"
118.Ed
119.Pp
120Join a specific BSS network with network name
121.Dq Li my_net :
122.Pp
123.Bd -literal -offset indent
124ifconfig wlan create wlandev mwl0 inet 192.168.0.20 \e
125	netmask 0xffffff00 ssid my_net"
126.Ed
127.Pp
128Join a specific BSS network with WEP encryption:
129.Bd -literal -offset indent
130ifconfig wlan0 create wlandev mwl0
131ifconfig wlan0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net \e
132	wepmode on wepkey 0x8736639624
133.Ed
134.Pp
135Create an 802.11g host-based access point:
136.Bd -literal -offset indent
137ifconfig wlan0 create wlandev mwl0 wlanmode hostap
138ifconfig wlan0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap \e
139	mode 11g
140.Ed
141.Pp
142Create two virtual 802.11a host-based access points, one with
143with WEP enabled and one with no security, and bridge them to
144the fxp0 (wired) device:
145.Bd -literal -offset indent
146ifconfig wlan0 create wlandev mwl0 wlanmode hostap \e
147	ssid paying-customers wepmode on wepkey 0x1234567890 \e
148	mode 11a up
149ifconfig wlan1 create wlandev mwl0 wlanmode hostap bssid \e
150	ssid freeloaders up
151ifconfig bridge0 create addm wlan0 addm wlan1 addm fxp0 up
152.Ed
153.Sh DIAGNOSTICS
154.Bl -diag
155.It "mwl%d: unable to setup builtin firmware"
156There was a problem downloading and/or setting up the firmware.
157The device is not usable.
158.It "mwl%d: failed to setup descriptors: %d"
159There was a problem setting up the DMA data structures.
160This typically is caused by not being able to allocate contiguous memory.
161.It "mwl%d: transmit timeout"
162A frame dispatched to the hardware for transmission did not complete in time.
163This should not happen.
164.It "mwl%d: device not present"
165A cardbus device was ejected while active; the request to the firmware
166was not completed.
167.El
168.Sh SEE ALSO
169.Xr cardbus 4 ,
170.Xr intro 4 ,
171.Xr mwlfw 4 ,
172.Xr pci 4 ,
173.Xr wlan 4 ,
174.Xr wlan_ccmp 4 ,
175.Xr wlan_tkip 4 ,
176.Xr wlan_wep 4 ,
177.Xr wlan_xauth 4 ,
178.Xr hostapd 8 ,
179.Xr ifconfig 8 ,
180.Xr wpa_supplicant 8
181.Sh HISTORY
182The
183.Nm
184device driver first appeared in
185.Fx 8.0 .
186.Sh BUGS
187The driver does not support power-save operation in station mode;
188consequently power use is suboptimal (e.g. on a laptop).
189