From 3526ff0fadfbc0efddde53a5060a7e02b92f856a Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Tue, 5 Nov 2013 17:07:56 -0800 Subject: [PATCH] Android: Add ANDROID_P2P define under BOARD_WLAN_DEVICE Signed-off-by: Dmitry Shmidt --- hostapd/Android.mk | 12 ++++++++++++ wpa_supplicant/Android.mk | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/hostapd/Android.mk b/hostapd/Android.mk index c355723c1..e0ae8627f 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -24,6 +24,18 @@ L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\" # Set Android log name L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\" +ifeq ($(BOARD_WLAN_DEVICE), bcmdhd) +L_CFLAGS += -DANDROID_P2P +endif + +ifeq ($(BOARD_WLAN_DEVICE), qcwcn) +L_CFLAGS += -DANDROID_P2P +endif + +ifeq ($(BOARD_WLAN_DEVICE), mrvl) +L_CFLAGS += -DANDROID_P2P +endif + # To force sizeof(enum) = 4 ifeq ($(TARGET_ARCH),arm) L_CFLAGS += -mabi=aapcs-linux diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk index e3850d22a..a06a4270a 100644 --- a/wpa_supplicant/Android.mk +++ b/wpa_supplicant/Android.mk @@ -31,6 +31,19 @@ ifdef CONFIG_NO_ROAMING L_CFLAGS += -DCONFIG_NO_ROAMING endif +ifeq ($(BOARD_WLAN_DEVICE), bcmdhd) +L_CFLAGS += -DANDROID_P2P +L_CFLAGS += -DP2P_CONCURRENT_SEARCH_DELAY=0 +endif + +ifeq ($(BOARD_WLAN_DEVICE), qcwcn) +L_CFLAGS += -DANDROID_P2P +endif + +ifeq ($(BOARD_WLAN_DEVICE), mrvl) +L_CFLAGS += -DANDROID_P2P +endif + # Use Android specific directory for control interface sockets L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\" L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/wpa_supplicant\"