xref: /freebsd/share/man/man4/bwn.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
145d9abdbSWeongyo Jeong.\" Copyright (c) 2009 Christian Brueffer
245d9abdbSWeongyo Jeong.\" All rights reserved.
345d9abdbSWeongyo Jeong.\"
445d9abdbSWeongyo Jeong.\" Redistribution and use in source and binary forms, with or without
545d9abdbSWeongyo Jeong.\" modification, are permitted provided that the following conditions
645d9abdbSWeongyo Jeong.\" are met:
745d9abdbSWeongyo Jeong.\" 1. Redistributions of source code must retain the above copyright
845d9abdbSWeongyo Jeong.\"    notice, this list of conditions and the following disclaimer.
945d9abdbSWeongyo Jeong.\" 2. Redistributions in binary form must reproduce the above copyright
1045d9abdbSWeongyo Jeong.\"    notice, this list of conditions and the following disclaimer in the
1145d9abdbSWeongyo Jeong.\"    documentation and/or other materials provided with the distribution.
1245d9abdbSWeongyo Jeong.\"
1345d9abdbSWeongyo Jeong.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1445d9abdbSWeongyo Jeong.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1545d9abdbSWeongyo Jeong.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1645d9abdbSWeongyo Jeong.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1745d9abdbSWeongyo Jeong.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1845d9abdbSWeongyo Jeong.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1945d9abdbSWeongyo Jeong.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2045d9abdbSWeongyo Jeong.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2145d9abdbSWeongyo Jeong.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2245d9abdbSWeongyo Jeong.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2345d9abdbSWeongyo Jeong.\" SUCH DAMAGE.
2445d9abdbSWeongyo Jeong.\"
25*d177c199SLandon J. Fuller.Dd December 16, 2017
2645d9abdbSWeongyo Jeong.Dt BWN 4
2745d9abdbSWeongyo Jeong.Os
2845d9abdbSWeongyo Jeong.Sh NAME
2945d9abdbSWeongyo Jeong.Nm bwn
30*d177c199SLandon J. Fuller.Nd Broadcom BCM43xx SoftMAC IEEE 802.11 wireless network driver
3145d9abdbSWeongyo Jeong.Sh SYNOPSIS
32*d177c199SLandon J. FullerTo compile this driver into the kernel, add the following lines to the kernel
33*d177c199SLandon J. Fullerconfiguration file:
3445d9abdbSWeongyo Jeong.Bd -ragged -offset indent
3545d9abdbSWeongyo Jeong.Cd "device bwn"
36*d177c199SLandon J. Fuller.Cd "device bhnd"
37*d177c199SLandon J. Fuller.Cd "device bhndb"
38*d177c199SLandon J. Fuller.Cd "device bhndb_pci"
39*d177c199SLandon J. Fuller.Cd "device bcma"
40*d177c199SLandon J. Fuller.Cd "device siba"
41*d177c199SLandon J. Fuller.Cd "device gpio"
4245d9abdbSWeongyo Jeong.Cd "device wlan"
4345d9abdbSWeongyo Jeong.Cd "device wlan_amrr"
4445d9abdbSWeongyo Jeong.Cd "device firmware"
4545d9abdbSWeongyo Jeong.Ed
4645d9abdbSWeongyo Jeong.Pp
47*d177c199SLandon J. FullerTo load the driver as a module at boot, add the following lines to
4845d9abdbSWeongyo Jeong.Xr loader.conf 5 :
4945d9abdbSWeongyo Jeong.Bd -literal -offset indent
5045d9abdbSWeongyo Jeongif_bwn_load="YES"
5145d9abdbSWeongyo Jeong.Ed
5245d9abdbSWeongyo Jeong.Sh DESCRIPTION
5345d9abdbSWeongyo JeongThe
5445d9abdbSWeongyo Jeong.Nm
5545d9abdbSWeongyo Jeongdriver provides support for Broadcom BCM43xx based
5645d9abdbSWeongyo JeongPCI/CardBus network adapters.
5745d9abdbSWeongyo Jeong.Pp
5845d9abdbSWeongyo JeongIt supports
5945d9abdbSWeongyo Jeong.Cm station
6045d9abdbSWeongyo Jeongand
6145d9abdbSWeongyo Jeong.Cm monitor
6245d9abdbSWeongyo Jeongmode operation.
6345d9abdbSWeongyo JeongOnly one virtual interface may be configured at any time.
6445d9abdbSWeongyo JeongFor more information on configuring this device, see
6545d9abdbSWeongyo Jeong.Xr ifconfig 8 .
6645d9abdbSWeongyo Jeong.Pp
6745d9abdbSWeongyo JeongThis driver requires firmware to be loaded before it will work.
6845d9abdbSWeongyo JeongThe
6945d9abdbSWeongyo Jeong.Pa ports/net/bwn-firmware-kmod
7045d9abdbSWeongyo Jeongport needs to be installed before
7145d9abdbSWeongyo Jeong.Xr ifconfig 8
7245d9abdbSWeongyo Jeongwill work.
73cf804e4eSChristian BruefferIn most cases the
74cf804e4eSChristian Brueffer.Pa bwn_v4_ucode
75cf804e4eSChristian Bruefferkernel module from the port should be used.
76cf804e4eSChristian BruefferHowever, if an LP (low power) PHY is being used, the
77cf804e4eSChristian Brueffer.Pa bwn_v4_lp_ucode
78cf804e4eSChristian Brueffermodule should be used.
7945d9abdbSWeongyo Jeong.Sh HARDWARE
8045d9abdbSWeongyo JeongThe
8145d9abdbSWeongyo Jeong.Nm
8245d9abdbSWeongyo Jeongdriver supports Broadcom BCM43xx based wireless devices, including:
83748611c9SJoel Dahl.Bl -column "Apple Airport Extreme" "BCM4306" "Mini PCI" "a/b/g"
84748611c9SJoel Dahl.It Em "Card" Ta Em "Chip" Ta Em "Bus" Ta Em "Standard"
8545d9abdbSWeongyo Jeong.It "Apple Airport Extreme	BCM4318	PCI	b/g"
8645d9abdbSWeongyo Jeong.It "ASUS WL-138g	BCM4318	PCI	b/g"
8745d9abdbSWeongyo Jeong.It "Buffalo WLI-CB-G54S	BCM4318	CardBus	b/g"
888a2d29c9SMartin Wilke.It "Dell Wireless 1390	BCM4311	Mini PCI	b/g"
8945d9abdbSWeongyo Jeong.It "Dell Wireless 1470	BCM4318	Mini PCI	b/g"
9045d9abdbSWeongyo Jeong.It "Dell Truemobile 1400	BCM4309	Mini PCI	b/g"
913fb1541dSJoel Dahl.It "HP Compaq 6715b	BCM4312	PCI	b/g"
9245d9abdbSWeongyo Jeong.It "HP nx6125	BCM4319	PCI	b/g"
9345d9abdbSWeongyo Jeong.It "Linksys WPC54G Ver 3	BCM4318	CardBus	b/g"
9445d9abdbSWeongyo Jeong.It "Linksys WPC54GS Ver 2	BCM4318	CardBus	b/g"
9545d9abdbSWeongyo Jeong.It "US Robotics 5411	BCM4318	CardBus	b/g"
9645d9abdbSWeongyo Jeong.El
9737e81ca5SWeongyo Jeong.Pp
98efe89589SWeongyo JeongUsers of older Broadcom chipsets (BCM4301, BCM4303 and BCM4306 rev 2)
99efe89589SWeongyo Jeongmust use
10037e81ca5SWeongyo Jeong.Xr bwi 4
101efe89589SWeongyo Jeongbecause the v4 version of the firmware does not support these chips.
102efe89589SWeongyo JeongThe newer firmware is too big to fit into these old chips.
10345d9abdbSWeongyo Jeong.Sh EXAMPLES
10445d9abdbSWeongyo JeongJoin an existing BSS network (i.e., connect to an access point):
10545d9abdbSWeongyo Jeong.Bd -literal -offset indent
10645d9abdbSWeongyo Jeongifconfig wlan create wlandev bwn0 inet 192.168.0.20 \e
10745d9abdbSWeongyo Jeong    netmask 0xffffff00
10845d9abdbSWeongyo Jeong.Ed
10945d9abdbSWeongyo Jeong.Pp
11045d9abdbSWeongyo JeongJoin a specific BSS network with network name
11145d9abdbSWeongyo Jeong.Dq Li my_net :
11245d9abdbSWeongyo Jeong.Pp
11345d9abdbSWeongyo Jeong.Dl "ifconfig wlan create wlandev bwn0 ssid my_net up"
11445d9abdbSWeongyo Jeong.Pp
11545d9abdbSWeongyo JeongJoin a specific BSS network with 64-bit WEP encryption:
11645d9abdbSWeongyo Jeong.Bd -literal -offset indent
11745d9abdbSWeongyo Jeongifconfig wlan create wlandev bwn0 ssid my_net \e
11845d9abdbSWeongyo Jeong        wepmode on wepkey 0x1234567890 weptxkey 1 up
11945d9abdbSWeongyo Jeong.Ed
12050398e41SWeongyo Jeong.Sh LOADER TUNABLES
12150398e41SWeongyo JeongTunables can be set at the
12250398e41SWeongyo Jeong.Xr loader 8
12350398e41SWeongyo Jeongprompt before booting the kernel or stored in
12450398e41SWeongyo Jeong.Xr loader.conf 5 .
12550398e41SWeongyo Jeong.Bl -tag -width indent
12650398e41SWeongyo Jeong.It Va hw.bwn.usedma
12750398e41SWeongyo JeongThis tunable enables DMA operations on the hardware.
12850398e41SWeongyo JeongIf the value is 0, PIO mode would be used.
12950398e41SWeongyo JeongThe default value is 1.
13050398e41SWeongyo Jeong.El
13145d9abdbSWeongyo Jeong.Sh SEE ALSO
13245d9abdbSWeongyo Jeong.Xr arp 4 ,
133*d177c199SLandon J. Fuller.Xr bcma 4 ,
134*d177c199SLandon J. Fuller.Xr bhnd 4 ,
135*d177c199SLandon J. Fuller.Xr bhndb 4 ,
136d3e3be7fSWeongyo Jeong.Xr bwi 4 ,
13745d9abdbSWeongyo Jeong.Xr cardbus 4 ,
13845d9abdbSWeongyo Jeong.Xr intro 4 ,
13945d9abdbSWeongyo Jeong.Xr pci 4 ,
140*d177c199SLandon J. Fuller.Xr siba 4 ,
14145d9abdbSWeongyo Jeong.Xr wlan 4 ,
14245d9abdbSWeongyo Jeong.Xr wlan_amrr 4 ,
14345d9abdbSWeongyo Jeong.Xr ifconfig 8 ,
14445d9abdbSWeongyo Jeong.Xr wpa_supplicant 8
14545d9abdbSWeongyo Jeong.Sh HISTORY
14645d9abdbSWeongyo JeongThe
14745d9abdbSWeongyo Jeong.Nm
14845d9abdbSWeongyo Jeongdriver first appeared in
149976d54c3SXin LI.Fx 8.1 .
150*d177c199SLandon J. FullerThe driver was updated to support the common Broadcom
151*d177c199SLandon J. Fuller.Xr bhnd 4
152*d177c199SLandon J. Fullerbus interface in
153*d177c199SLandon J. Fuller.Fx 12.0 .
15445d9abdbSWeongyo Jeong.Sh AUTHORS
15545d9abdbSWeongyo Jeong.An -nosplit
15645d9abdbSWeongyo JeongThe
15745d9abdbSWeongyo Jeong.Nm
15845d9abdbSWeongyo Jeongdriver was written by
1596c899950SBaptiste Daroussin.An Weongyo Jeong Aq Mt weongyo@FreeBSD.org .
160*d177c199SLandon J. FullerSupport for
161*d177c199SLandon J. Fuller.Xr bhnd 4
162*d177c199SLandon J. Fullerwas added by
163*d177c199SLandon J. Fuller.An Landon Fuller Aq Mt landonf@FreeBSD.org .
16445d9abdbSWeongyo Jeong.\".Sh BUGS
16545d9abdbSWeongyo Jeong.\"Some card based on the BCM4306 and BCM4309 chips do not work properly
16645d9abdbSWeongyo Jeong.\"on channel 1, 2 and 3.
167135bce2aSUlrich Spörlein.Sh CAVEATS
168135bce2aSUlrich SpörleinSome LP PHY devices have DMA operation problems that in that case try to
169135bce2aSUlrich Spörleinuse PIO mode.
170