net: wireless: bcmdhd: Allow WEXT support
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 1 Jun 2011 23:22:21 +0000 (16:22 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:08:19 +0000 (12:08 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/Kconfig
drivers/net/wireless/bcmdhd/Makefile

index 05b7259..7ef1434 100644 (file)
@@ -1,6 +1,6 @@
 config BCMDHD
        tristate "Broadcom 4329/30 wireless cards support"
-       depends on MMC && CFG80211
+       depends on MMC
        ---help---
          This module adds support for wireless adapters based on
          Broadcom 4329/30 chipset.
@@ -23,3 +23,11 @@ config BCMDHD_NVRAM_PATH
        default "/system/etc/wifi/bcmdhd.cal"
        ---help---
          Path to the calibration file.
+
+config BCMDHD_WEXT
+       bool "Enable WEXT support"
+       depends on BCMDHD
+       select WIRELESS_EXT
+       select WEXT_PRIV
+       help
+         Enables WEXT support
index 410f1f0..4b5e5ac 100644 (file)
@@ -5,20 +5,23 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Werror -Dlinux -DBCMDRIVER             \
        -DDHD_BCMEVENTS -DSHOW_EVENTS -DDONGLEOVERLAYS -DOEM_ANDROID -DBCMDBG \
        -DCUSTOMER_HW3 -DCUSTOM_OOB_GPIO_NUM=135 -DOOB_INTR_ONLY              \
        -DMMC_SDIO_ABORT -DCONFIG_FIRST_SCAN -DBCMSDIO -DBCMLXSDMMC           \
-       -DBCMPLATFORM_BUS -DHW_OOB -DNEW_COMPAT_WIRELESS -DWL_CFG80211        \
+       -DBCMPLATFORM_BUS -DHW_OOB -DNEW_COMPAT_WIRELESS                      \
        -DWLP2P -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT -DKEEP_ALIVE -DCSCAN   \
        -Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
 
 DHDOFILES = aiutils.o bcmsdh_sdmmc_linux.o dhd_linux.o siutils.o bcmutils.o   \
-       dhd_linux_sched.o wl_cfg80211.o bcmwifi.o dhd_sdio.o wl_cfgp2p.o      \
-       bcmevent.o dhd_bta.o hndpmu.o bcmsdh.o dhd_cdc.o bcmsdh_linux.o       \
-       dhd_common.o linux_osl.o bcmsdh_sdmmc.o dhd_custom_gpio.o sbutils.o   \
-       wldev_common.o
+       dhd_linux_sched.o bcmwifi.o dhd_sdio.o bcmevent.o dhd_bta.o hndpmu.o  \
+       bcmsdh.o dhd_cdc.o bcmsdh_linux.o dhd_common.o linux_osl.o            \
+       bcmsdh_sdmmc.o dhd_custom_gpio.o sbutils.o
 
 obj-$(CONFIG_BCMDHD) += bcmdhd.o
 bcmdhd-objs += $(DHDOFILES)
 ifneq ($(CONFIG_WIRELESS_EXT),)
 bcmdhd-objs += wl_iw.o
 endif
+ifneq ($(CONFIG_CFG80211),)
+bcmdhd-objs += wl_cfg80211.o wl_cfgp2p.o wldev_common.o
+DHDCFLAGS += -DWL_CFG80211
+endif
 EXTRA_CFLAGS = $(DHDCFLAGS)
 EXTRA_LDFLAGS += --strip-debug