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();