diff options
-rw-r--r-- | sta_dk_4_0_4_32/wpa_supplicant_lib/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sta_dk_4_0_4_32/wpa_supplicant_lib/Android.mk b/sta_dk_4_0_4_32/wpa_supplicant_lib/Android.mk index 7f5a5cb..c8b760a 100644 --- a/sta_dk_4_0_4_32/wpa_supplicant_lib/Android.mk +++ b/sta_dk_4_0_4_32/wpa_supplicant_lib/Android.mk @@ -24,6 +24,13 @@ ifeq ($(TARGET_SIMULATOR),true) $(error This makefile must not be included when building the simulator) endif +ifndef WPA_SUPPLICANT_VERSION +WPA_SUPPLICANT_VERSION := VER_0_5_X +endif +ifneq ($(WPA_SUPPLICANT_VERSION),VER_0_5_X) + $(error This wlan can be used only with 0.5.X version of the wpa_supplicant) +endif + DK_ROOT = $(BOARD_WLAN_TI_STA_DK_ROOT) OS_ROOT = $(BOARD_WLAN_TI_STA_DK_ROOT)/pform COMMON = $(DK_ROOT)/common @@ -129,6 +136,7 @@ INCLUDES = $(COMMON)/inc \ $(DK_ROOT)/../lib L_CFLAGS += -DCONFIG_DRIVER_CUSTOM -DHOST_COMPILE +L_CFLAGS += -DWPA_SUPPLICANT_VER=$(WPA_SUPPLICANT_VERSION) ifeq ($(notdir $(BOARD_WLAN_TI_STA_DK_ROOT)),sta_dk_5_0_0_94) L_CFLAGS += -DSTA_DK_VER_5_0_0_94 endif |