Fix CONFIG_AP=y build without CONFIG_IEEE8021X_EAPOL=y

This commit is contained in:
Jouni Malinen 2010-05-23 12:18:47 +03:00
parent 37a86b7b36
commit 25c226ea45

View file

@ -574,7 +574,9 @@ endif
ifdef CONFIG_IEEE8021X_EAPOL ifdef CONFIG_IEEE8021X_EAPOL
# IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication) # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
CFLAGS += -DIEEE8021X_EAPOL CFLAGS += -DIEEE8021X_EAPOL
OBJS += ../src/eapol_supp/eapol_supp_sm.o ../src/eap_peer/eap.o ../src/eap_common/eap_common.o ../src/eap_peer/eap_methods.o OBJS += ../src/eapol_supp/eapol_supp_sm.o
OBJS += ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o
NEED_EAP_COMMON=y
ifdef CONFIG_DYNAMIC_EAP_METHODS ifdef CONFIG_DYNAMIC_EAP_METHODS
CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS CFLAGS += -DCONFIG_DYNAMIC_EAP_METHODS
LIBS += -ldl -rdynamic LIBS += -ldl -rdynamic
@ -583,6 +585,7 @@ endif
ifdef CONFIG_AP ifdef CONFIG_AP
NEED_80211_COMMON=y NEED_80211_COMMON=y
NEED_EAP_COMMON=y
NEED_RSN_AUTHENTICATOR=y NEED_RSN_AUTHENTICATOR=y
CFLAGS += -DCONFIG_AP CFLAGS += -DCONFIG_AP
OBJS += ap.o OBJS += ap.o
@ -1147,6 +1150,10 @@ ifdef NEED_80211_COMMON
OBJS += ../src/common/ieee802_11_common.o OBJS += ../src/common/ieee802_11_common.o
endif endif
ifdef NEED_EAP_COMMON
OBJS += ../src/eap_common/eap_common.o
endif
ifndef CONFIG_MAIN ifndef CONFIG_MAIN
CONFIG_MAIN=main CONFIG_MAIN=main
endif endif