aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_config.c
diff options
context:
space:
mode:
authorleiwei <leiwei@codeaurora.org>2019-05-24 07:26:46 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-03 17:27:44 (GMT)
commit29c832d0ea4fdac45e8433c1d4e84791f5e640c3 (patch)
treee00a9e9d44643b97c76b1db65d5f8d6ec1de72d1 /src/ap/ap_config.c
parentfe40c679d22b330a0fb9b35d9236666d9b364306 (diff)
downloadhostap-29c832d0ea4fdac45e8433c1d4e84791f5e640c3.zip
hostap-29c832d0ea4fdac45e8433c1d4e84791f5e640c3.tar.gz
hostap-29c832d0ea4fdac45e8433c1d4e84791f5e640c3.tar.bz2
macsec: Add configuration parameters for hostapd
Signed-off-by: leiwei <leiwei@codeaurora.org>
Diffstat (limited to 'src/ap/ap_config.c')
-rw-r--r--src/ap/ap_config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index eecd215..48d09bc 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -13,6 +13,7 @@
#include "crypto/tls.h"
#include "radius/radius_client.h"
#include "common/ieee802_11_defs.h"
+#include "common/ieee802_1x_defs.h"
#include "common/eapol_common.h"
#include "common/dhcp.h"
#include "eap_common/eap_wsc_common.h"
@@ -139,6 +140,11 @@ void hostapd_config_defaults_bss(struct hostapd_bss_config *bss)
bss->hs20_release = (HS20_VERSION >> 4) + 1;
#endif /* CONFIG_HS20 */
+#ifdef CONFIG_MACSEC
+ bss->mka_priority = DEFAULT_PRIO_NOT_KEY_SERVER;
+ bss->macsec_port = 1;
+#endif /* CONFIG_MACSEC */
+
/* Default to strict CRL checking. */
bss->check_crl_strict = 1;
}