Make CONFIG_MACSEC depend on IEEE8021X_EAPOL
When reducing the configuration for MACsec/MKA to the bare minimum, so no EAP authentication, just MACsec/MKA SA use with preshared key/name, the EAPOL engine is still needed to run the protocol for MKA. Without any EAP authentication options the IEEE8021X_EAPOL option is not set, resulting in a non-working Key Agreement Entity. Therefore the CONFIG_MACSEC block needs to move up and set the IEEE8021X_EAPOL option. Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
This commit is contained in:
parent
704e9d0f21
commit
6136394545
1 changed files with 14 additions and 13 deletions
|
@ -822,6 +822,20 @@ endif
|
|||
endif
|
||||
endif
|
||||
|
||||
ifdef CONFIG_MACSEC
|
||||
CFLAGS += -DCONFIG_MACSEC
|
||||
CONFIG_IEEE8021X_EAPOL=y
|
||||
NEED_AES_ENCBLOCK=y
|
||||
NEED_AES_UNWRAP=y
|
||||
NEED_AES_WRAP=y
|
||||
NEED_AES_OMAC1=y
|
||||
OBJS += wpas_kay.o
|
||||
OBJS += ../src/pae/ieee802_1x_cp.o
|
||||
OBJS += ../src/pae/ieee802_1x_kay.o
|
||||
OBJS += ../src/pae/ieee802_1x_key.o
|
||||
OBJS += ../src/pae/ieee802_1x_secy_ops.o
|
||||
endif
|
||||
|
||||
ifdef CONFIG_IEEE8021X_EAPOL
|
||||
# IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)
|
||||
CFLAGS += -DIEEE8021X_EAPOL
|
||||
|
@ -834,19 +848,6 @@ LIBS += -ldl -rdynamic
|
|||
endif
|
||||
endif
|
||||
|
||||
ifdef CONFIG_MACSEC
|
||||
CFLAGS += -DCONFIG_MACSEC
|
||||
NEED_AES_ENCBLOCK=y
|
||||
NEED_AES_UNWRAP=y
|
||||
NEED_AES_WRAP=y
|
||||
NEED_AES_OMAC1=y
|
||||
OBJS += wpas_kay.o
|
||||
OBJS += ../src/pae/ieee802_1x_cp.o
|
||||
OBJS += ../src/pae/ieee802_1x_kay.o
|
||||
OBJS += ../src/pae/ieee802_1x_key.o
|
||||
OBJS += ../src/pae/ieee802_1x_secy_ops.o
|
||||
endif
|
||||
|
||||
ifdef CONFIG_AP
|
||||
NEED_EAP_COMMON=y
|
||||
NEED_RSN_AUTHENTICATOR=y
|
||||
|
|
Loading…
Reference in a new issue