net: wireless: bcmdhd: Add sched-scan config option
Dmitry Shmidt [Mon, 12 Mar 2012 22:45:04 +0000 (15:45 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/Kconfig
drivers/net/wireless/bcmdhd/Makefile

index d66bc99..dc490c3 100644 (file)
@@ -43,6 +43,13 @@ config DHD_USE_STATIC_BUF
        ---help---
          Use memory preallocated in platform
 
+config DHD_USE_SCHED_SCAN
+       bool "Use CFG80211 sched scan"
+       depends on BCMDHD && CFG80211
+       default n
+       ---help---
+       Use CFG80211 sched scan
+
 config BCMDHD_CFG80211
        bool "Enable CFG80211 support"
        depends on CFG80211
index 35f9c60..13b62cc 100644 (file)
@@ -52,7 +52,10 @@ ifeq ($(CONFIG_BCMDHD_CFG80211),y)
 bcmdhd-objs += wl_cfg80211.o wl_cfgp2p.o wl_linux_mon.o
 DHDCFLAGS += -DWL_CFG80211
 endif
-
+ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),)
+DHDCFLAGS += -DWL_SCHED_SCAN
+else
+endif
 EXTRA_CFLAGS = $(DHDCFLAGS)
 ifeq ($(CONFIG_BCMDHD),m)
 EXTRA_LDFLAGS += --strip-debug