aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-09 19:49:36 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-09 20:18:32 (GMT)
commit7a56712c0cb4b9439f53c02ea3c4170126e3649a (patch)
tree46b14c9d4e2638c1589862a474e98c117a11cc01
parent82046b7a170210e2b3127da62cf747f237e40b9f (diff)
downloadhostap-7a56712c0cb4b9439f53c02ea3c4170126e3649a.zip
hostap-7a56712c0cb4b9439f53c02ea3c4170126e3649a.tar.gz
hostap-7a56712c0cb4b9439f53c02ea3c4170126e3649a.tar.bz2
AOSP: Define ANDROID_P2P for bcmdhd
-rw-r--r--hostapd/Android.mk4
-rw-r--r--wpa_supplicant/Android.mk4
2 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 9ce0816..c1e5d8b 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -24,6 +24,10 @@ 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
+
# 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 66aefa9..74d5dec 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -29,6 +29,10 @@ ifdef CONFIG_NO_ROAMING
L_CFLAGS += -DCONFIG_NO_ROAMING
endif
+ifeq ($(BOARD_WLAN_DEVICE), bcmdhd)
+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\"