]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/ap_config.c
macsec: Add configuration parameters for hostapd
[thirdparty/hostap.git] / src / ap / ap_config.c
index eecd215af278a3072d03427dd7d4cb74eedc1c48..48d09bcf9d121f71601529e21ad4778d3d288c3b 100644 (file)
@@ -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;
 }