From 4a540526febdb0f64b0180a20d8c95ca4c1e973e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 24 Feb 2015 11:12:22 -0600 Subject: [PATCH] eapol: Add eapol_start --- src/eapol.c | 5 +++++ src/eapol.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index 2e0e80cd..81a14ab2 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -483,6 +483,11 @@ void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie, sm->own_rsn = l_memdup(rsn_ie, len); } +void eapol_start(int ifindex, struct eapol_sm *sm) +{ + l_hashmap_insert(state_machines, L_UINT_TO_PTR(ifindex), sm); +} + void __eapol_set_tx_packet_func(eapol_tx_packet_func_t func) { tx_packet = func; diff --git a/src/eapol.h b/src/eapol.h index 606488ee..a5465316 100644 --- a/src/eapol.h +++ b/src/eapol.h @@ -142,5 +142,7 @@ void eapol_sm_set_ap_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie, void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie, size_t len); +void eapol_start(int ifindex, struct eapol_sm *sm); + bool eapol_init(); bool eapol_exit();