]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
MACsec: Allow EAPOL version 3 to be configured
authorHu Wang <huw@qti.qualcomm.com>
Mon, 31 Mar 2014 14:36:55 +0000 (17:36 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 9 May 2014 17:05:28 +0000 (20:05 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/common/eapol_common.h
wpa_supplicant/config.c

index 4811f38aab36c354eb7b544e7d48e194baaaf65b..3f4261a2a2cc9083366973eee47fcf4a37d9fb1d 100644 (file)
@@ -26,7 +26,11 @@ struct ieee802_1x_hdr {
 #pragma pack(pop)
 #endif /* _MSC_VER */
 
+#ifdef CONFIG_MACSEC
+#define EAPOL_VERSION 3
+#else /* CONFIG_MACSEC */
 #define EAPOL_VERSION 2
+#endif /* CONFIG_MACSEC */
 
 enum { IEEE802_1X_TYPE_EAP_PACKET = 0,
        IEEE802_1X_TYPE_EAPOL_START = 1,
index b5a5d7885fe115b48f72299aa42a5f450b4fb397..7d58c05c01cd50ece35f86eb5703b5c7819fcc11 100644 (file)
@@ -3784,7 +3784,11 @@ static const struct global_parse_data global_fields[] = {
        { FUNC_NO_VAR(no_ctrl_interface), 0 },
        { STR(ctrl_interface_group), 0 } /* deprecated */,
 #endif /* CONFIG_CTRL_IFACE */
+#ifdef CONFIG_MACSEC
+       { INT_RANGE(eapol_version, 1, 3), 0 },
+#else /* CONFIG_MACSEC */
        { INT_RANGE(eapol_version, 1, 2), 0 },
+#endif /* CONFIG_MACSEC */
        { INT(ap_scan), 0 },
        { FUNC(bgscan), 0 },
        { INT(disable_scan_offload), 0 },