net: wireless: bcmdhd: Add CONFIG_DHD_ENABLE_P2P Kconfig option
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 29 Mar 2012 19:09:23 +0000 (12:09 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 29 Mar 2012 19:18:08 +0000 (12:18 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/Kconfig
drivers/net/wireless/bcmdhd/Makefile

index 231ae187f40447898277c79ead9554f7621f04f7..8b6b92f624374ae43fa3f20034c2faafda207fb8 100644 (file)
@@ -45,3 +45,10 @@ config DHD_USE_SCHED_SCAN
        default n
        ---help---
          Use CFG80211 sched scan
+
+config DHD_ENABLE_P2P
+       bool "Enable Wifi Direct"
+       depends on BCMDHD && CFG80211
+       default n
+       ---help---
+         Use Enable Wifi Direct
index bd0886febe500eab2cbbf62405e3c70b5927a763..eda803e3ca798520dbdf4e73580175b09f2a7116 100644 (file)
@@ -8,7 +8,7 @@ DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER                     \
        -DNEW_COMPAT_WIRELESS -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT          \
        -DKEEP_ALIVE -DCSCAN -DGET_CUSTOM_MAC_ENABLE -DPKT_FILTER_SUPPORT     \
        -DEMBEDDED_PLATFORM -DENABLE_INSMOD_NO_FW_LOAD -DPNO_SUPPORT          \
-       -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
 
 DHDOFILES = aiutils.o bcmsdh_sdmmc_linux.o dhd_linux.o siutils.o bcmutils.o   \
@@ -28,7 +28,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)