aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHu Wang <huw@qti.qualcomm.com>2014-03-31 14:38:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-09 17:05:28 (GMT)
commit3bcfab8794ad8bc5973a3e70c091ed96893ff7f2 (patch)
treeb316d0a8583ae182a77be043fa8a81afb495fe77
parent0836c04b30b8ef03b7ff60b62518ccb8e456dbe2 (diff)
downloadhostap-3bcfab8794ad8bc5973a3e70c091ed96893ff7f2.zip
hostap-3bcfab8794ad8bc5973a3e70c091ed96893ff7f2.tar.gz
hostap-3bcfab8794ad8bc5973a3e70c091ed96893ff7f2.tar.bz2
MACsec: Add define for EAPOL type MKA
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/common/eapol_common.h3
-rw-r--r--src/eapol_supp/eapol_supp_sm.c7
2 files changed, 9 insertions, 1 deletions
diff --git a/src/common/eapol_common.h b/src/common/eapol_common.h
index 3f4261a..a81e9ff 100644
--- a/src/common/eapol_common.h
+++ b/src/common/eapol_common.h
@@ -36,7 +36,8 @@ enum { IEEE802_1X_TYPE_EAP_PACKET = 0,
IEEE802_1X_TYPE_EAPOL_START = 1,
IEEE802_1X_TYPE_EAPOL_LOGOFF = 2,
IEEE802_1X_TYPE_EAPOL_KEY = 3,
- IEEE802_1X_TYPE_EAPOL_ENCAPSULATED_ASF_ALERT = 4
+ IEEE802_1X_TYPE_EAPOL_ENCAPSULATED_ASF_ALERT = 4,
+ IEEE802_1X_TYPE_EAPOL_MKA = 5,
};
enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,
diff --git a/src/eapol_supp/eapol_supp_sm.c b/src/eapol_supp/eapol_supp_sm.c
index 1034395..1004b1a 100644
--- a/src/eapol_supp/eapol_supp_sm.c
+++ b/src/eapol_supp/eapol_supp_sm.c
@@ -1345,6 +1345,13 @@ int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
eapol_sm_step(sm);
}
break;
+#ifdef CONFIG_MACSEC
+ case IEEE802_1X_TYPE_EAPOL_MKA:
+ wpa_printf(MSG_EXCESSIVE,
+ "EAPOL type %d will be handled by MKA",
+ hdr->type);
+ break;
+#endif /* CONFIG_MACSEC */
default:
wpa_printf(MSG_DEBUG, "EAPOL: Received unknown EAPOL type %d",
hdr->type);