MACsec: Add define for EAPOL type MKA
authorHu Wang <huw@qti.qualcomm.com>
Mon, 31 Mar 2014 14:38:54 +0000 (17:38 +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
src/eapol_supp/eapol_supp_sm.c

index 3f4261a..a81e9ff 100644 (file)
@@ -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,
index 1034395..1004b1a 100644 (file)
@@ -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);