2012-05-15 02:34:24 +02:00
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# This software may be distributed under the terms of the BSD license.
|
|
|
|
# See README for more details.
|
|
|
|
#
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
WPA_BUILD_HOSTAPD := false
|
2011-11-23 16:56:41 +01:00
|
|
|
ifneq ($(BOARD_HOSTAPD_DRIVER),)
|
|
|
|
WPA_BUILD_HOSTAPD := true
|
|
|
|
CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
|
2011-11-23 16:58:44 +01:00
|
|
|
ifeq ($(WPA_BUILD_HOSTAPD),true)
|
|
|
|
|
2011-11-15 15:02:30 +01:00
|
|
|
include $(LOCAL_PATH)/android.config
|
2011-02-27 18:19:43 +01:00
|
|
|
|
|
|
|
# To ignore possible wrong network configurations
|
|
|
|
L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
|
|
|
|
|
2012-02-25 16:35:44 +01:00
|
|
|
L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\"
|
|
|
|
|
2011-10-21 16:26:35 +02:00
|
|
|
# Set Android log name
|
|
|
|
L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\"
|
|
|
|
|
2014-04-15 02:06:02 +02:00
|
|
|
# Disable unused parameter warnings
|
|
|
|
L_CFLAGS += -Wno-unused-parameter
|
|
|
|
|
2014-04-12 01:05:39 +02:00
|
|
|
# Set Android extended P2P functionality
|
2013-11-06 02:07:56 +01:00
|
|
|
L_CFLAGS += -DANDROID_P2P
|
2015-06-20 02:22:29 +02:00
|
|
|
|
2014-04-12 01:05:39 +02:00
|
|
|
ifeq ($(BOARD_HOSTAPD_PRIVATE_LIB),)
|
2015-06-20 02:22:29 +02:00
|
|
|
L_CFLAGS += -DANDROID_LIB_STUB
|
2013-11-06 02:07:56 +01:00
|
|
|
endif
|
|
|
|
|
2012-09-04 07:12:17 +02:00
|
|
|
# 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/hostapd\"
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
# To force sizeof(enum) = 4
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
L_CFLAGS += -mabi=aapcs-linux
|
|
|
|
endif
|
|
|
|
|
|
|
|
INCLUDES = $(LOCAL_PATH)
|
|
|
|
INCLUDES += $(LOCAL_PATH)/src
|
|
|
|
INCLUDES += $(LOCAL_PATH)/src/utils
|
|
|
|
INCLUDES += external/openssl/include
|
2013-11-08 03:17:26 +01:00
|
|
|
INCLUDES += system/security/keystore/include
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_DRIVER_NL80211
|
2014-02-19 01:26:10 +01:00
|
|
|
ifneq ($(wildcard external/libnl),)
|
|
|
|
INCLUDES += external/libnl/include
|
|
|
|
else
|
2011-11-15 17:37:10 +01:00
|
|
|
INCLUDES += external/libnl-headers
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
2014-02-19 01:26:10 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
ifndef CONFIG_OS
|
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
CONFIG_OS=win32
|
|
|
|
else
|
|
|
|
CONFIG_OS=unix
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_OS), internal)
|
|
|
|
L_CFLAGS += -DOS_NO_C_LIB_DEFINES
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NATIVE_WINDOWS
|
|
|
|
L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
|
|
|
|
LIBS += -lws2_32
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS = main.c
|
|
|
|
OBJS += config_file.c
|
|
|
|
|
|
|
|
OBJS += src/ap/hostapd.c
|
|
|
|
OBJS += src/ap/wpa_auth_glue.c
|
|
|
|
OBJS += src/ap/drv_callbacks.c
|
|
|
|
OBJS += src/ap/ap_drv_ops.c
|
|
|
|
OBJS += src/ap/utils.c
|
|
|
|
OBJS += src/ap/authsrv.c
|
|
|
|
OBJS += src/ap/ieee802_1x.c
|
|
|
|
OBJS += src/ap/ap_config.c
|
2012-11-21 16:55:36 +01:00
|
|
|
OBJS += src/ap/eap_user_db.c
|
2011-02-27 18:19:43 +01:00
|
|
|
OBJS += src/ap/ieee802_11_auth.c
|
|
|
|
OBJS += src/ap/sta_info.c
|
|
|
|
OBJS += src/ap/wpa_auth.c
|
|
|
|
OBJS += src/ap/tkip_countermeasures.c
|
|
|
|
OBJS += src/ap/ap_mlme.c
|
|
|
|
OBJS += src/ap/wpa_auth_ie.c
|
|
|
|
OBJS += src/ap/preauth_auth.c
|
|
|
|
OBJS += src/ap/pmksa_cache_auth.c
|
2011-11-15 17:34:09 +01:00
|
|
|
OBJS += src/ap/ieee802_11_shared.c
|
|
|
|
OBJS += src/ap/beacon.c
|
2014-10-16 01:36:04 +02:00
|
|
|
OBJS += src/ap/bss_load.c
|
2011-02-27 18:19:43 +01:00
|
|
|
OBJS_d =
|
|
|
|
OBJS_p =
|
|
|
|
LIBS =
|
|
|
|
LIBS_c =
|
|
|
|
HOBJS =
|
|
|
|
LIBS_h =
|
|
|
|
|
|
|
|
NEED_RC4=y
|
|
|
|
NEED_AES=y
|
|
|
|
NEED_MD5=y
|
|
|
|
NEED_SHA1=y
|
|
|
|
|
|
|
|
OBJS += src/drivers/drivers.c
|
|
|
|
L_CFLAGS += -DHOSTAPD
|
|
|
|
|
|
|
|
ifdef CONFIG_WPA_TRACE
|
|
|
|
L_CFLAGS += -DWPA_TRACE
|
|
|
|
OBJS += src/utils/trace.c
|
|
|
|
HOBJS += src/utils/trace.c
|
|
|
|
LDFLAGS += -rdynamic
|
|
|
|
L_CFLAGS += -funwind-tables
|
|
|
|
ifdef CONFIG_WPA_TRACE_BFD
|
|
|
|
L_CFLAGS += -DWPA_TRACE_BFD
|
|
|
|
LIBS += -lbfd
|
|
|
|
LIBS_c += -lbfd
|
|
|
|
LIBS_h += -lbfd
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS += src/utils/eloop.c
|
|
|
|
OBJS += src/utils/common.c
|
|
|
|
OBJS += src/utils/wpa_debug.c
|
|
|
|
OBJS += src/utils/wpabuf.c
|
|
|
|
OBJS += src/utils/os_$(CONFIG_OS).c
|
|
|
|
OBJS += src/utils/ip_addr.c
|
|
|
|
|
|
|
|
OBJS += src/common/ieee802_11_common.c
|
|
|
|
OBJS += src/common/wpa_common.c
|
2015-01-08 12:48:29 +01:00
|
|
|
OBJS += src/common/hw_features_common.c
|
2011-02-27 18:19:43 +01:00
|
|
|
|
|
|
|
OBJS += src/eapol_auth/eapol_auth_sm.c
|
|
|
|
|
|
|
|
|
|
|
|
ifndef CONFIG_NO_DUMP_STATE
|
2014-01-02 17:15:07 +01:00
|
|
|
# define HOSTAPD_DUMP_STATE to include support for dumping internal state
|
|
|
|
# through control interface commands (undefine it, if you want to save in
|
|
|
|
# binary size)
|
2011-02-27 18:19:43 +01:00
|
|
|
L_CFLAGS += -DHOSTAPD_DUMP_STATE
|
|
|
|
OBJS += src/eapol_auth/eapol_auth_dump.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_RADIUS
|
|
|
|
L_CFLAGS += -DCONFIG_NO_RADIUS
|
|
|
|
CONFIG_NO_ACCOUNTING=y
|
|
|
|
else
|
|
|
|
OBJS += src/radius/radius.c
|
|
|
|
OBJS += src/radius/radius_client.c
|
2013-03-17 19:08:23 +01:00
|
|
|
OBJS += src/radius/radius_das.c
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_ACCOUNTING
|
|
|
|
L_CFLAGS += -DCONFIG_NO_ACCOUNTING
|
|
|
|
else
|
|
|
|
OBJS += src/ap/accounting.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_VLAN
|
|
|
|
L_CFLAGS += -DCONFIG_NO_VLAN
|
|
|
|
else
|
|
|
|
OBJS += src/ap/vlan_init.c
|
2012-08-10 11:55:33 +02:00
|
|
|
ifdef CONFIG_VLAN_NETLINK
|
|
|
|
ifdef CONFIG_FULL_DYNAMIC_VLAN
|
|
|
|
OBJS += src/ap/vlan_util.c
|
|
|
|
endif
|
|
|
|
L_CFLAGS += -DCONFIG_VLAN_NETLINK
|
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_NO_CTRL_IFACE
|
|
|
|
L_CFLAGS += -DCONFIG_NO_CTRL_IFACE
|
|
|
|
else
|
|
|
|
OBJS += ctrl_iface.c
|
|
|
|
OBJS += src/ap/ctrl_iface_ap.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
L_CFLAGS += -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
|
|
|
|
|
|
|
|
ifdef CONFIG_IAPP
|
|
|
|
L_CFLAGS += -DCONFIG_IAPP
|
|
|
|
OBJS += src/ap/iapp.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_RSN_PREAUTH
|
|
|
|
L_CFLAGS += -DCONFIG_RSN_PREAUTH
|
|
|
|
CONFIG_L2_PACKET=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PEERKEY
|
|
|
|
L_CFLAGS += -DCONFIG_PEERKEY
|
|
|
|
OBJS += src/ap/peerkey_auth.c
|
|
|
|
endif
|
|
|
|
|
2013-07-23 20:23:25 +02:00
|
|
|
ifdef CONFIG_HS20
|
|
|
|
NEED_AES_OMAC1=y
|
2014-11-25 16:06:54 +01:00
|
|
|
CONFIG_PROXYARP=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PROXYARP
|
|
|
|
CONFIG_L2_PACKET=y
|
2013-07-23 20:23:25 +02:00
|
|
|
endif
|
|
|
|
|
2014-11-16 12:22:46 +01:00
|
|
|
ifdef CONFIG_SUITEB
|
|
|
|
L_CFLAGS += -DCONFIG_SUITEB
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
endif
|
|
|
|
|
2015-01-25 22:32:01 +01:00
|
|
|
ifdef CONFIG_SUITEB192
|
|
|
|
L_CFLAGS += -DCONFIG_SUITEB192
|
|
|
|
NEED_SHA384=y
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_IEEE80211W
|
|
|
|
L_CFLAGS += -DCONFIG_IEEE80211W
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_IEEE80211R
|
|
|
|
L_CFLAGS += -DCONFIG_IEEE80211R
|
|
|
|
OBJS += src/ap/wpa_auth_ft.c
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
NEED_AES_UNWRAP=y
|
|
|
|
endif
|
|
|
|
|
2012-09-30 18:51:07 +02:00
|
|
|
ifdef CONFIG_SAE
|
|
|
|
L_CFLAGS += -DCONFIG_SAE
|
2012-12-30 21:06:11 +01:00
|
|
|
OBJS += src/common/sae.c
|
2012-12-31 18:41:21 +01:00
|
|
|
NEED_ECC=y
|
2013-01-05 20:22:00 +01:00
|
|
|
NEED_DH_GROUPS=y
|
2012-09-30 18:51:07 +02:00
|
|
|
endif
|
|
|
|
|
2013-03-17 19:13:46 +01:00
|
|
|
ifdef CONFIG_WNM
|
2013-11-06 01:45:35 +01:00
|
|
|
L_CFLAGS += -DCONFIG_WNM
|
2013-03-17 19:08:23 +01:00
|
|
|
OBJS += src/ap/wnm_ap.c
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_IEEE80211N
|
|
|
|
L_CFLAGS += -DCONFIG_IEEE80211N
|
|
|
|
endif
|
|
|
|
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_IEEE80211AC
|
|
|
|
L_CFLAGS += -DCONFIG_IEEE80211AC
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
include $(LOCAL_PATH)/src/drivers/drivers.mk
|
|
|
|
|
|
|
|
OBJS += $(DRV_AP_OBJS)
|
|
|
|
L_CFLAGS += $(DRV_AP_CFLAGS)
|
|
|
|
LDFLAGS += $(DRV_AP_LDFLAGS)
|
|
|
|
LIBS += $(DRV_AP_LIBS)
|
|
|
|
|
|
|
|
ifdef CONFIG_L2_PACKET
|
|
|
|
ifdef CONFIG_DNET_PCAP
|
|
|
|
ifdef CONFIG_L2_FREEBSD
|
|
|
|
LIBS += -lpcap
|
|
|
|
OBJS += src/l2_packet/l2_packet_freebsd.c
|
|
|
|
else
|
|
|
|
LIBS += -ldnet -lpcap
|
|
|
|
OBJS += src/l2_packet/l2_packet_pcap.c
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
OBJS += src/l2_packet/l2_packet_linux.c
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
OBJS += src/l2_packet/l2_packet_none.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_MD5
|
|
|
|
L_CFLAGS += -DEAP_SERVER_MD5
|
|
|
|
OBJS += src/eap_server/eap_server_md5.c
|
|
|
|
CHAP=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_TLS
|
|
|
|
L_CFLAGS += -DEAP_SERVER_TLS
|
|
|
|
OBJS += src/eap_server/eap_server_tls.c
|
|
|
|
TLS_FUNCS=y
|
|
|
|
endif
|
|
|
|
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_EAP_UNAUTH_TLS
|
|
|
|
L_CFLAGS += -DEAP_SERVER_UNAUTH_TLS
|
|
|
|
ifndef CONFIG_EAP_TLS
|
|
|
|
OBJS += src/eap_server/eap_server_tls.c
|
|
|
|
TLS_FUNCS=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_EAP_PEAP
|
|
|
|
L_CFLAGS += -DEAP_SERVER_PEAP
|
|
|
|
OBJS += src/eap_server/eap_server_peap.c
|
|
|
|
OBJS += src/eap_common/eap_peap_common.c
|
|
|
|
TLS_FUNCS=y
|
|
|
|
CONFIG_EAP_MSCHAPV2=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_TTLS
|
|
|
|
L_CFLAGS += -DEAP_SERVER_TTLS
|
|
|
|
OBJS += src/eap_server/eap_server_ttls.c
|
|
|
|
TLS_FUNCS=y
|
|
|
|
CHAP=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_MSCHAPV2
|
|
|
|
L_CFLAGS += -DEAP_SERVER_MSCHAPV2
|
|
|
|
OBJS += src/eap_server/eap_server_mschapv2.c
|
|
|
|
MS_FUNCS=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_GTC
|
|
|
|
L_CFLAGS += -DEAP_SERVER_GTC
|
|
|
|
OBJS += src/eap_server/eap_server_gtc.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_SIM
|
|
|
|
L_CFLAGS += -DEAP_SERVER_SIM
|
|
|
|
OBJS += src/eap_server/eap_server_sim.c
|
|
|
|
CONFIG_EAP_SIM_COMMON=y
|
|
|
|
NEED_AES_CBC=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_AKA
|
|
|
|
L_CFLAGS += -DEAP_SERVER_AKA
|
|
|
|
OBJS += src/eap_server/eap_server_aka.c
|
|
|
|
CONFIG_EAP_SIM_COMMON=y
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_AES_CBC=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_AKA_PRIME
|
|
|
|
L_CFLAGS += -DEAP_SERVER_AKA_PRIME
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_SIM_COMMON
|
|
|
|
OBJS += src/eap_common/eap_sim_common.c
|
|
|
|
# Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be
|
|
|
|
# replaced with another file implementating the interface specified in
|
|
|
|
# eap_sim_db.h.
|
|
|
|
OBJS += src/eap_server/eap_sim_db.c
|
|
|
|
NEED_FIPS186_2_PRF=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_PAX
|
|
|
|
L_CFLAGS += -DEAP_SERVER_PAX
|
|
|
|
OBJS += src/eap_server/eap_server_pax.c src/eap_common/eap_pax_common.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_PSK
|
|
|
|
L_CFLAGS += -DEAP_SERVER_PSK
|
|
|
|
OBJS += src/eap_server/eap_server_psk.c src/eap_common/eap_psk_common.c
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
NEED_AES_ENCBLOCK=y
|
|
|
|
NEED_AES_EAX=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_SAKE
|
|
|
|
L_CFLAGS += -DEAP_SERVER_SAKE
|
|
|
|
OBJS += src/eap_server/eap_server_sake.c src/eap_common/eap_sake_common.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_GPSK
|
|
|
|
L_CFLAGS += -DEAP_SERVER_GPSK
|
|
|
|
OBJS += src/eap_server/eap_server_gpsk.c src/eap_common/eap_gpsk_common.c
|
|
|
|
ifdef CONFIG_EAP_GPSK_SHA256
|
2014-01-05 13:11:14 +01:00
|
|
|
L_CFLAGS += -DEAP_GPSK_SHA256
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_AES_OMAC1=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_PWD
|
|
|
|
L_CFLAGS += -DEAP_SERVER_PWD
|
|
|
|
OBJS += src/eap_server/eap_server_pwd.c src/eap_common/eap_pwd_common.c
|
|
|
|
NEED_SHA256=y
|
|
|
|
endif
|
|
|
|
|
2013-07-06 17:47:25 +02:00
|
|
|
ifdef CONFIG_EAP_EKE
|
|
|
|
L_CFLAGS += -DEAP_SERVER_EKE
|
|
|
|
OBJS += src/eap_server/eap_server_eke.c src/eap_common/eap_eke_common.c
|
|
|
|
NEED_DH_GROUPS=y
|
|
|
|
NEED_DH_GROUPS_ALL=y
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_EAP_VENDOR_TEST
|
|
|
|
L_CFLAGS += -DEAP_SERVER_VENDOR_TEST
|
|
|
|
OBJS += src/eap_server/eap_server_vendor_test.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_FAST
|
|
|
|
L_CFLAGS += -DEAP_SERVER_FAST
|
|
|
|
OBJS += src/eap_server/eap_server_fast.c
|
|
|
|
OBJS += src/eap_common/eap_fast_common.c
|
|
|
|
TLS_FUNCS=y
|
|
|
|
NEED_T_PRF=y
|
|
|
|
NEED_AES_UNWRAP=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_WPS
|
|
|
|
L_CFLAGS += -DCONFIG_WPS -DEAP_SERVER_WSC
|
|
|
|
OBJS += src/utils/uuid.c
|
|
|
|
OBJS += src/ap/wps_hostapd.c
|
|
|
|
OBJS += src/eap_server/eap_server_wsc.c src/eap_common/eap_wsc_common.c
|
|
|
|
OBJS += src/wps/wps.c
|
|
|
|
OBJS += src/wps/wps_common.c
|
|
|
|
OBJS += src/wps/wps_attr_parse.c
|
|
|
|
OBJS += src/wps/wps_attr_build.c
|
|
|
|
OBJS += src/wps/wps_attr_process.c
|
|
|
|
OBJS += src/wps/wps_dev_attr.c
|
|
|
|
OBJS += src/wps/wps_enrollee.c
|
|
|
|
OBJS += src/wps/wps_registrar.c
|
|
|
|
NEED_DH_GROUPS=y
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_BASE64=y
|
|
|
|
NEED_AES_CBC=y
|
|
|
|
NEED_MODEXP=y
|
|
|
|
CONFIG_EAP=y
|
|
|
|
|
|
|
|
ifdef CONFIG_WPS_NFC
|
|
|
|
L_CFLAGS += -DCONFIG_WPS_NFC
|
|
|
|
OBJS += src/wps/ndef.c
|
|
|
|
NEED_WPS_OOB=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_WPS_OOB
|
|
|
|
L_CFLAGS += -DCONFIG_WPS_OOB
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_WPS_UPNP
|
|
|
|
L_CFLAGS += -DCONFIG_WPS_UPNP
|
|
|
|
OBJS += src/wps/wps_upnp.c
|
|
|
|
OBJS += src/wps/wps_upnp_ssdp.c
|
|
|
|
OBJS += src/wps/wps_upnp_web.c
|
|
|
|
OBJS += src/wps/wps_upnp_event.c
|
|
|
|
OBJS += src/wps/wps_upnp_ap.c
|
|
|
|
OBJS += src/wps/upnp_xml.c
|
|
|
|
OBJS += src/wps/httpread.c
|
|
|
|
OBJS += src/wps/http_client.c
|
|
|
|
OBJS += src/wps/http_server.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_WPS_STRICT
|
|
|
|
L_CFLAGS += -DCONFIG_WPS_STRICT
|
|
|
|
OBJS += src/wps/wps_validate.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_WPS_TESTING
|
|
|
|
L_CFLAGS += -DCONFIG_WPS_TESTING
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_IKEV2
|
|
|
|
L_CFLAGS += -DEAP_SERVER_IKEV2
|
|
|
|
OBJS += src/eap_server/eap_server_ikev2.c src/eap_server/ikev2.c
|
|
|
|
OBJS += src/eap_common/eap_ikev2_common.c src/eap_common/ikev2_common.c
|
|
|
|
NEED_DH_GROUPS=y
|
|
|
|
NEED_DH_GROUPS_ALL=y
|
|
|
|
NEED_MODEXP=y
|
|
|
|
NEED_CIPHER=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP_TNC
|
|
|
|
L_CFLAGS += -DEAP_SERVER_TNC
|
|
|
|
OBJS += src/eap_server/eap_server_tnc.c
|
|
|
|
OBJS += src/eap_server/tncs.c
|
|
|
|
NEED_BASE64=y
|
|
|
|
ifndef CONFIG_DRIVER_BSD
|
|
|
|
LIBS += -ldl
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Basic EAP functionality is needed for EAPOL
|
|
|
|
OBJS += eap_register.c
|
|
|
|
OBJS += src/eap_server/eap_server.c
|
|
|
|
OBJS += src/eap_common/eap_common.c
|
|
|
|
OBJS += src/eap_server/eap_server_methods.c
|
|
|
|
OBJS += src/eap_server/eap_server_identity.c
|
|
|
|
L_CFLAGS += -DEAP_SERVER_IDENTITY
|
|
|
|
|
|
|
|
ifdef CONFIG_EAP
|
|
|
|
L_CFLAGS += -DEAP_SERVER
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PKCS12
|
|
|
|
L_CFLAGS += -DPKCS12_FUNCS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MS_FUNCS
|
|
|
|
OBJS += src/crypto/ms_funcs.c
|
|
|
|
NEED_DES=y
|
|
|
|
NEED_MD4=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CHAP
|
|
|
|
OBJS += src/eap_common/chap.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
NEED_DES=y
|
|
|
|
# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS)
|
|
|
|
L_CFLAGS += -DEAP_TLS_FUNCS
|
|
|
|
OBJS += src/eap_server/eap_server_tls_common.c
|
|
|
|
NEED_TLS_PRF=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CONFIG_TLS
|
|
|
|
CONFIG_TLS=openssl
|
|
|
|
endif
|
|
|
|
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_TLSV11
|
|
|
|
L_CFLAGS += -DCONFIG_TLSV11
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_TLSV12
|
|
|
|
L_CFLAGS += -DCONFIG_TLSV12
|
|
|
|
NEED_SHA256=y
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifeq ($(CONFIG_TLS), openssl)
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += src/crypto/tls_openssl.c
|
|
|
|
LIBS += -lssl
|
|
|
|
endif
|
|
|
|
OBJS += src/crypto/crypto_openssl.c
|
|
|
|
HOBJS += src/crypto/crypto_openssl.c
|
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
OBJS += src/crypto/fips_prf_openssl.c
|
|
|
|
endif
|
|
|
|
LIBS += -lcrypto
|
|
|
|
LIBS_h += -lcrypto
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TLS), gnutls)
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += src/crypto/tls_gnutls.c
|
|
|
|
LIBS += -lgnutls -lgpg-error
|
|
|
|
endif
|
|
|
|
OBJS += src/crypto/crypto_gnutls.c
|
|
|
|
HOBJS += src/crypto/crypto_gnutls.c
|
|
|
|
ifdef NEED_FIPS186_2_PRF
|
2014-03-11 15:33:05 +01:00
|
|
|
OBJS += src/crypto/fips_prf_internal.c
|
|
|
|
OBJS += src/crypto/sha1-internal.c
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
LIBS += -lgcrypt
|
|
|
|
LIBS_h += -lgcrypt
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TLS), internal)
|
|
|
|
ifndef CONFIG_CRYPTO
|
|
|
|
CONFIG_CRYPTO=internal
|
|
|
|
endif
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += src/crypto/crypto_internal-rsa.c
|
|
|
|
OBJS += src/crypto/tls_internal.c
|
|
|
|
OBJS += src/tls/tlsv1_common.c
|
|
|
|
OBJS += src/tls/tlsv1_record.c
|
|
|
|
OBJS += src/tls/tlsv1_cred.c
|
|
|
|
OBJS += src/tls/tlsv1_server.c
|
|
|
|
OBJS += src/tls/tlsv1_server_write.c
|
|
|
|
OBJS += src/tls/tlsv1_server_read.c
|
|
|
|
OBJS += src/tls/asn1.c
|
|
|
|
OBJS += src/tls/rsa.c
|
|
|
|
OBJS += src/tls/x509v3.c
|
|
|
|
OBJS += src/tls/pkcs1.c
|
|
|
|
OBJS += src/tls/pkcs5.c
|
|
|
|
OBJS += src/tls/pkcs8.c
|
|
|
|
NEED_SHA256=y
|
|
|
|
NEED_BASE64=y
|
|
|
|
NEED_TLS_PRF=y
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_TLSV12
|
|
|
|
NEED_TLS_PRF_SHA256=y
|
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
NEED_MODEXP=y
|
|
|
|
NEED_CIPHER=y
|
|
|
|
L_CFLAGS += -DCONFIG_TLS_INTERNAL
|
|
|
|
L_CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
|
|
|
|
endif
|
|
|
|
ifdef NEED_CIPHER
|
|
|
|
NEED_DES=y
|
|
|
|
OBJS += src/crypto/crypto_internal-cipher.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_MODEXP
|
|
|
|
OBJS += src/crypto/crypto_internal-modexp.c
|
|
|
|
OBJS += src/tls/bignum.c
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CRYPTO), libtomcrypt)
|
|
|
|
OBJS += src/crypto/crypto_libtomcrypt.c
|
|
|
|
LIBS += -ltomcrypt -ltfm
|
|
|
|
LIBS_h += -ltomcrypt -ltfm
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CRYPTO), internal)
|
|
|
|
OBJS += src/crypto/crypto_internal.c
|
|
|
|
NEED_AES_DEC=y
|
|
|
|
L_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
|
|
|
|
ifdef CONFIG_INTERNAL_LIBTOMMATH
|
|
|
|
L_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
|
|
|
|
ifdef CONFIG_INTERNAL_LIBTOMMATH_FAST
|
|
|
|
L_CFLAGS += -DLTM_FAST
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LIBS += -ltommath
|
|
|
|
LIBS_h += -ltommath
|
|
|
|
endif
|
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_DES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD4=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CRYPTO), cryptoapi)
|
|
|
|
OBJS += src/crypto/crypto_cryptoapi.c
|
|
|
|
OBJS_p += src/crypto/crypto_cryptoapi.c
|
|
|
|
L_CFLAGS += -DCONFIG_CRYPTO_CRYPTOAPI
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TLS), none)
|
|
|
|
ifdef TLS_FUNCS
|
|
|
|
OBJS += src/crypto/tls_none.c
|
|
|
|
L_CFLAGS += -DEAP_TLS_NONE
|
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
endif
|
|
|
|
OBJS += src/crypto/crypto_none.c
|
|
|
|
OBJS_p += src/crypto/crypto_none.c
|
|
|
|
CONFIG_INTERNAL_SHA256=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef TLS_FUNCS
|
|
|
|
OBJS += src/crypto/tls_none.c
|
|
|
|
ifeq ($(CONFIG_TLS), internal)
|
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
AESOBJS = # none so far
|
|
|
|
ifdef CONFIG_INTERNAL_AES
|
|
|
|
AESOBJS += src/crypto/aes-internal.c src/crypto/aes-internal-enc.c
|
|
|
|
endif
|
|
|
|
|
2015-01-27 12:57:59 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
AESOBJS += src/crypto/aes-wrap.c
|
2015-01-27 12:57:59 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef NEED_AES_EAX
|
|
|
|
AESOBJS += src/crypto/aes-eax.c
|
|
|
|
NEED_AES_CTR=y
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES_CTR
|
|
|
|
AESOBJS += src/crypto/aes-ctr.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES_ENCBLOCK
|
|
|
|
AESOBJS += src/crypto/aes-encblock.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES_OMAC1
|
|
|
|
AESOBJS += src/crypto/aes-omac1.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES_UNWRAP
|
2015-01-27 12:57:59 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
NEED_AES_DEC=y
|
|
|
|
AESOBJS += src/crypto/aes-unwrap.c
|
|
|
|
endif
|
2015-01-27 12:57:59 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef NEED_AES_CBC
|
|
|
|
NEED_AES_DEC=y
|
2015-03-29 19:30:58 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
AESOBJS += src/crypto/aes-cbc.c
|
|
|
|
endif
|
2015-03-29 19:30:58 +02:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef NEED_AES_DEC
|
|
|
|
ifdef CONFIG_INTERNAL_AES
|
|
|
|
AESOBJS += src/crypto/aes-internal-dec.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifdef NEED_AES
|
|
|
|
OBJS += $(AESOBJS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
SHA1OBJS =
|
|
|
|
ifdef NEED_SHA1
|
2012-08-16 19:38:25 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
SHA1OBJS += src/crypto/sha1.c
|
2012-08-16 19:38:25 +02:00
|
|
|
endif
|
2012-08-16 19:23:12 +02:00
|
|
|
SHA1OBJS += src/crypto/sha1-prf.c
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_SHA1
|
|
|
|
SHA1OBJS += src/crypto/sha1-internal.c
|
|
|
|
ifdef NEED_FIPS186_2_PRF
|
|
|
|
SHA1OBJS += src/crypto/fips_prf_internal.c
|
|
|
|
endif
|
|
|
|
endif
|
2012-08-16 19:13:02 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
SHA1OBJS += src/crypto/sha1-pbkdf2.c
|
2012-08-16 19:13:02 +02:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef NEED_T_PRF
|
|
|
|
SHA1OBJS += src/crypto/sha1-tprf.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_TLS_PRF
|
|
|
|
SHA1OBJS += src/crypto/sha1-tlsprf.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_SHA1
|
|
|
|
OBJS += $(SHA1OBJS)
|
|
|
|
endif
|
|
|
|
|
2015-01-27 12:26:01 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
|
|
|
OBJS += src/crypto/md5.c
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef NEED_MD5
|
|
|
|
ifdef CONFIG_INTERNAL_MD5
|
|
|
|
OBJS += src/crypto/md5-internal.c
|
|
|
|
HOBJS += src/crypto/md5-internal.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_MD4
|
|
|
|
ifdef CONFIG_INTERNAL_MD4
|
|
|
|
OBJS += src/crypto/md4-internal.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_DES
|
|
|
|
ifdef CONFIG_INTERNAL_DES
|
|
|
|
OBJS += src/crypto/des-internal.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_RC4
|
|
|
|
ifdef CONFIG_INTERNAL_RC4
|
|
|
|
OBJS += src/crypto/rc4.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_SHA256
|
2012-08-31 17:25:18 +02:00
|
|
|
L_CFLAGS += -DCONFIG_SHA256
|
2012-08-16 21:34:35 +02:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
OBJS += src/crypto/sha256.c
|
2012-08-16 21:34:35 +02:00
|
|
|
endif
|
2012-08-16 21:24:11 +02:00
|
|
|
OBJS += src/crypto/sha256-prf.c
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_INTERNAL_SHA256
|
|
|
|
OBJS += src/crypto/sha256-internal.c
|
|
|
|
endif
|
2012-08-31 17:25:18 +02:00
|
|
|
ifdef NEED_TLS_PRF_SHA256
|
2013-03-17 19:08:23 +01:00
|
|
|
OBJS += src/crypto/sha256-tlsprf.c
|
2012-08-31 17:25:18 +02:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
2015-01-25 23:37:18 +01:00
|
|
|
ifdef NEED_SHA384
|
|
|
|
L_CFLAGS += -DCONFIG_SHA384
|
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
|
|
|
|
ifdef NEED_DH_GROUPS
|
|
|
|
OBJS += src/crypto/dh_groups.c
|
|
|
|
endif
|
|
|
|
ifdef NEED_DH_GROUPS_ALL
|
|
|
|
L_CFLAGS += -DALL_DH_GROUPS
|
|
|
|
endif
|
|
|
|
ifdef CONFIG_INTERNAL_DH_GROUP5
|
|
|
|
ifdef NEED_DH_GROUPS
|
|
|
|
OBJS += src/crypto/dh_group5.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-12-31 18:41:21 +01:00
|
|
|
ifdef NEED_ECC
|
|
|
|
L_CFLAGS += -DCONFIG_ECC
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_NO_RANDOM_POOL
|
|
|
|
L_CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
|
|
|
else
|
|
|
|
OBJS += src/crypto/random.c
|
|
|
|
HOBJS += src/crypto/random.c
|
2013-03-17 19:08:23 +01:00
|
|
|
HOBJS += src/utils/eloop.c
|
2011-02-27 18:19:43 +01:00
|
|
|
HOBJS += $(SHA1OBJS)
|
2015-03-20 13:56:31 +01:00
|
|
|
ifneq ($(CONFIG_TLS), openssl)
|
2011-02-27 18:19:43 +01:00
|
|
|
HOBJS += src/crypto/md5.c
|
|
|
|
endif
|
2015-03-20 13:56:31 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
|
|
|
|
ifdef CONFIG_RADIUS_SERVER
|
|
|
|
L_CFLAGS += -DRADIUS_SERVER
|
|
|
|
OBJS += src/radius/radius_server.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_IPV6
|
|
|
|
L_CFLAGS += -DCONFIG_IPV6
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_DRIVER_RADIUS_ACL
|
|
|
|
L_CFLAGS += -DCONFIG_DRIVER_RADIUS_ACL
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_FULL_DYNAMIC_VLAN
|
|
|
|
# define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges
|
|
|
|
# and vlan interfaces for the vlan feature.
|
|
|
|
L_CFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_BASE64
|
|
|
|
OBJS += src/utils/base64.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NEED_AP_MLME
|
|
|
|
OBJS += src/ap/wmm.c
|
|
|
|
OBJS += src/ap/ap_list.c
|
|
|
|
OBJS += src/ap/ieee802_11.c
|
|
|
|
OBJS += src/ap/hw_features.c
|
2013-10-18 14:18:40 +02:00
|
|
|
OBJS += src/ap/dfs.c
|
2011-02-27 18:19:43 +01:00
|
|
|
L_CFLAGS += -DNEED_AP_MLME
|
|
|
|
endif
|
|
|
|
ifdef CONFIG_IEEE80211N
|
|
|
|
OBJS += src/ap/ieee802_11_ht.c
|
|
|
|
endif
|
|
|
|
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_IEEE80211AC
|
|
|
|
OBJS += src/ap/ieee802_11_vht.c
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_P2P_MANAGER
|
|
|
|
L_CFLAGS += -DCONFIG_P2P_MANAGER
|
|
|
|
OBJS += src/ap/p2p_hostapd.c
|
|
|
|
endif
|
|
|
|
|
2013-03-17 19:08:23 +01:00
|
|
|
ifdef CONFIG_HS20
|
|
|
|
L_CFLAGS += -DCONFIG_HS20
|
|
|
|
OBJS += src/ap/hs20.c
|
|
|
|
CONFIG_INTERWORKING=y
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_INTERWORKING
|
|
|
|
L_CFLAGS += -DCONFIG_INTERWORKING
|
|
|
|
OBJS += src/common/gas.c
|
|
|
|
OBJS += src/ap/gas_serv.c
|
|
|
|
endif
|
|
|
|
|
2014-11-25 16:06:54 +01:00
|
|
|
ifdef CONFIG_PROXYARP
|
|
|
|
L_CFLAGS += -DCONFIG_PROXYARP
|
|
|
|
OBJS += src/ap/x_snoop.c
|
|
|
|
OBJS += src/ap/dhcp_snoop.c
|
|
|
|
ifdef CONFIG_IPV6
|
|
|
|
OBJS += src/ap/ndisc_snoop.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-11-13 17:56:26 +01:00
|
|
|
OBJS += src/drivers/driver_common.c
|
|
|
|
|
2013-11-08 03:06:28 +01:00
|
|
|
ifdef CONFIG_ACS
|
|
|
|
L_CFLAGS += -DCONFIG_ACS
|
|
|
|
OBJS += src/ap/acs.c
|
|
|
|
LIBS += -lm
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_NO_STDOUT_DEBUG
|
|
|
|
L_CFLAGS += -DCONFIG_NO_STDOUT_DEBUG
|
|
|
|
endif
|
|
|
|
|
2013-11-08 12:05:55 +01:00
|
|
|
ifdef CONFIG_DEBUG_LINUX_TRACING
|
|
|
|
L_CFLAGS += -DCONFIG_DEBUG_LINUX_TRACING
|
|
|
|
endif
|
|
|
|
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_DEBUG_FILE
|
|
|
|
L_CFLAGS += -DCONFIG_DEBUG_FILE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_ANDROID_LOG
|
|
|
|
L_CFLAGS += -DCONFIG_ANDROID_LOG
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS_c = hostapd_cli.c src/common/wpa_ctrl.c src/utils/os_$(CONFIG_OS).c
|
2011-11-15 17:34:57 +01:00
|
|
|
OBJS_c += src/utils/eloop.c
|
2015-06-17 15:30:34 +02:00
|
|
|
OBJS_c += src/utils/common.c
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_WPA_TRACE
|
|
|
|
OBJS_c += src/utils/trace.c
|
2011-11-15 17:34:57 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
OBJS_c += src/utils/wpa_debug.c
|
2011-11-15 17:34:57 +01:00
|
|
|
ifdef CONFIG_WPA_CLI_EDIT
|
|
|
|
OBJS_c += src/utils/edit.c
|
|
|
|
else
|
|
|
|
OBJS_c += src/utils/edit_simple.c
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
########################
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := hostapd_cli
|
|
|
|
LOCAL_MODULE_TAGS := debug
|
2013-11-08 00:09:36 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := libc libcutils liblog
|
2011-02-27 18:19:43 +01:00
|
|
|
LOCAL_CFLAGS := $(L_CFLAGS)
|
|
|
|
LOCAL_SRC_FILES := $(OBJS_c)
|
|
|
|
LOCAL_C_INCLUDES := $(INCLUDES)
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
########################
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := hostapd
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
ifdef CONFIG_DRIVER_CUSTOM
|
|
|
|
LOCAL_STATIC_LIBRARIES := libCustomWifi
|
|
|
|
endif
|
|
|
|
ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB),)
|
|
|
|
LOCAL_STATIC_LIBRARIES += $(BOARD_HOSTAPD_PRIVATE_LIB)
|
|
|
|
endif
|
2013-11-08 00:09:36 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := libc libcutils liblog libcrypto libssl
|
2011-02-27 18:19:43 +01:00
|
|
|
ifdef CONFIG_DRIVER_NL80211
|
2014-02-19 01:26:10 +01:00
|
|
|
ifneq ($(wildcard external/libnl),)
|
|
|
|
LOCAL_SHARED_LIBRARIES += libnl
|
|
|
|
else
|
2011-11-15 17:37:10 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES += libnl_2
|
2011-02-27 18:19:43 +01:00
|
|
|
endif
|
2014-02-19 01:26:10 +01:00
|
|
|
endif
|
2011-02-27 18:19:43 +01:00
|
|
|
LOCAL_CFLAGS := $(L_CFLAGS)
|
|
|
|
LOCAL_SRC_FILES := $(OBJS)
|
|
|
|
LOCAL_C_INCLUDES := $(INCLUDES)
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
endif # ifeq ($(WPA_BUILD_HOSTAPD),true)
|