aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hostapd/Android.mk2
-rw-r--r--wpa_supplicant/Android.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 1df71482..0a6a9d19 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -33,10 +33,12 @@ L_CFLAGS += -DNO_APSME_ATTR
endif
# Set Android extended P2P functionality
+ifneq ($(USES_TI_MAC80211),true)
L_CFLAGS += -DANDROID_P2P
ifeq ($(BOARD_HOSTAPD_PRIVATE_LIB),)
L_CFLAGS += -DANDROID_P2P_STUB
endif
+endif
ifeq ($(BOARD_WIFI_SKIP_CAPABILITIES), true)
L_CFLAGS += -DBOARD_WIFI_SKIP_CAPABILITIES
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 1c2d04cb..c8fb0c33 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -25,10 +25,12 @@ L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\"
L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\"
# Set Android extended P2P functionality
+ifneq ($(USES_TI_MAC80211),true)
L_CFLAGS += -DANDROID_P2P
ifeq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),)
L_CFLAGS += -DANDROID_P2P_STUB
endif
+endif
# Disable roaming in wpa_supplicant
ifdef CONFIG_NO_ROAMING