eapol: Add eapol_start

This commit is contained in:
Denis Kenzior 2015-02-24 11:12:22 -06:00
parent 2ee8b8e56e
commit 4a540526fe
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

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