Skip to content

Commit

Permalink
staging: brcm80211: add fullmac driver
Browse files Browse the repository at this point in the history
This patch to the existing bcm80211 directory in the staging tree adds fullmac
driver support for the BCM4329 SDIO chip from Broadcom.  Configuration of the
mac80211 driver or the fullmac driver can be done through menuconfig.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Henry Ptasinski authored and Greg Kroah-Hartman committed Sep 21, 2010
1 parent c7fcf25 commit cf2b448
Show file tree
Hide file tree
Showing 47 changed files with 27,755 additions and 30 deletions.
1 change: 1 addition & 0 deletions drivers/staging/brcm80211/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ config BRCM80211_PCI
depends on BRCM80211
default y

source "drivers/staging/brcm80211/brcmfmac/Kconfig"
1 change: 1 addition & 0 deletions drivers/staging/brcm80211/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ EXTRA_CFLAGS += $(PCI_CFLAGS)
$(MODULEPFX)-objs = $(BRCM80211_OFILES) $(PCIFILES)
endif

obj-$(CONFIG_BRCMFMAC) += brcmfmac/
2 changes: 2 additions & 0 deletions drivers/staging/brcm80211/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Other
=====
- wlc_mac80211.[ch], wl_mac80211.[ch] and linux_osl.c all need to be refactored
and combined.
- Merge files that are partially duplicated between the softmac and fullmac
drivers
- Replace driver's proprietary ssb interface with generic kernel ssb module
(only used when compiling for SDIO).
- PCI and SDIO support are currently #ifdef'ed exclusive of each other, which
Expand Down
15 changes: 15 additions & 0 deletions drivers/staging/brcm80211/brcmfmac/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
menuconfig BRCMFMAC
tristate "Broadcom fullmac wireless cards support"
depends on MMC
depends on CFG80211
select FW_LOADER
select WIRELESS_EXT
select WEXT_PRIV
---help---
This module adds support for wireless adapters based on
Broadcom fullmac chipsets.
This driver uses the kernel's wireless extensions subsystem.
If you choose to build a module, it'll be called brcmfmac.ko. Say M if
unsure.


38 changes: 38 additions & 0 deletions drivers/staging/brcm80211/brcmfmac/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Makefile fragment for Broadcom 802.11n Networking Device Driver
#
# Copyright (c) 2010 Broadcom Corporation
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 \
-DUNRELEASEDCHIP -Dlinux -DDHD_SDALIGN=64 -DMAX_HDR_READ=64 \
-DDHD_FIRSTREAD=64 -DDHD_GPL -DDHD_SCHED -DBDC -DTOE -DDHD_BCMEVENTS \
-DSHOW_EVENTS -DBCMSDIO -DDHD_GPL -DBCMLXSDMMC -DBCMPLATFORM_BUS \
-Wall -Wstrict-prototypes -Werror -DOEM_CHROMIUMOS -DEMBEDDED_PLATFORM \
-DARP_OFFLOAD_SUPPORT -DPKT_FILTER_SUPPORT -DBRCM_FULLMAC \
-DCONFIG_CFG80211 -DMMC_SDIO_ABORT -DDHD_DEBUG_TRAP -DBCMDBG -DDHD_DEBUG \
-Idrivers/staging/brcm80211/brcmfmac \
-Idrivers/staging/brcm80211/brcmfmac/include \
-Idrivers/staging/brcm80211/include \
-Idrivers/staging/brcm80211/util

DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o \
wl_iw.o wl_cfg80211.o ../util/siutils.o ../util/sbutils.o ../util/aiutils.o ../util/hndpmu.o bcmwifi.o dhd_sdio.o \
dhd_linux_sched.o dhd_cdc.o bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o \
bcmsdh_sdmmc_linux.o

obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
brcmfmac-objs += $(DHDOFILES)
EXTRA_CFLAGS = $(DHDCFLAGS)
EXTRA_LDFLAGS += --strip-debug
36 changes: 36 additions & 0 deletions drivers/staging/brcm80211/brcmfmac/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Broadcom fullmac driver

This is production driver.

What's here
===========
- Completely open source host driver, no binary object files
- Features Broadcom's OneDriver architecture (single source base for
supported chips and architectures)
- On-chip firmware loaded using standard request_firmware()
- Support for BCM4329(SDIO)

What's done
==========
- Integration with cfg80211 stack
- Most of Mac functionality is performed in dongle
- A-MPDU single stream rates
- BCM4329: Dualband, Single stream, 20MHz channels

Firmware installation
======================
Firmware is available from the Linux firmware repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git
https://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git

For 4329 chip, copy brcm/bcm4329-fullmac-4-218-248-5.bin and
bcm4329-fullmac-4-218-248-5.txt to /lib/firmware/brcm

Contact Info:
=============
Brett Rudley brudley@broadcom.com
Henry Ptasinski henryp@broadcom.com
Nohee Ko noheek@broadcom.com

Loading

0 comments on commit cf2b448

Please sign in to comment.