net: wireless: bcmdhd: Add CONFIG_DHD_ENABLE_P2P Kconfig option
Dmitry Shmidt [Thu, 29 Mar 2012 19:09:23 +0000 (12:09 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

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

index dc490c3..7afecb0 100644 (file)
@@ -50,6 +50,13 @@ config DHD_USE_SCHED_SCAN
        ---help---
        Use CFG80211 sched scan
 
+config DHD_ENABLE_P2P
+       bool "Enable Wifi Direct"
+       depends on BCMDHD && CFG80211
+       default n
+       ---help---
+       Use Enable Wifi Direct
+
 config BCMDHD_CFG80211
        bool "Enable CFG80211 support"
        depends on CFG80211
index 64a87e1..fa7dc6d 100644 (file)
@@ -8,7 +8,7 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER                     \
        -DNEW_COMPAT_WIRELESS -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT          \
        -DKEEP_ALIVE -DPKT_FILTER_SUPPORT     \
        -DEMBEDDED_PLATFORM           \
-       -DSET_RANDOM_MAC_SOFTAP -DWL_ENABLE_P2P_IF -DWL_CFG80211_STA_EVENT    \
+       -DSET_RANDOM_MAC_SOFTAP -DWL_CFG80211_STA_EVENT                       \
        -Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
 
 ifeq ($(CONFIG_BCMDHD_WIFI_CONTROL_FUNC),y)
@@ -54,7 +54,9 @@ DHDCFLAGS += -DWL_CFG80211
 endif
 ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),)
 DHDCFLAGS += -DWL_SCHED_SCAN
-else
+endif
+ifneq ($(CONFIG_DHD_ENABLE_P2P),)
+DHDCFLAGS += -DWL_ENABLE_P2P_IF
 endif
 EXTRA_CFLAGS = $(DHDCFLAGS)
 ifeq ($(CONFIG_BCMDHD),m)