3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 10:39:23 +01:00

eapol: Move eapol_start

This commit is contained in:
Denis Kenzior 2016-06-28 16:56:56 -05:00
parent e059ee01a7
commit b6d651dda8

View File

@ -791,13 +791,6 @@ static void eapol_timeout(struct l_timeout *timeout, void *user_data)
MPDU_REASON_CODE_4WAY_HANDSHAKE_TIMEOUT);
}
void eapol_start(uint32_t ifindex, struct eapol_sm *sm)
{
sm->ifindex = ifindex;
sm->timeout = l_timeout_create(2, eapol_timeout, sm, NULL);
l_queue_push_head(state_machines, sm);
}
static void eapol_handle_ptk_1_of_4(uint32_t ifindex, struct eapol_sm *sm,
const struct eapol_key *ek)
{
@ -1652,6 +1645,13 @@ static bool eapol_get_nonce(uint8_t nonce[])
return l_getrandom(nonce, 32);
}
void eapol_start(uint32_t ifindex, struct l_io *io, struct eapol_sm *sm)
{
sm->ifindex = ifindex;
sm->timeout = l_timeout_create(2, eapol_timeout, sm, NULL);
l_queue_push_head(state_machines, sm);
}
void eapol_cancel(uint32_t ifindex)
{
l_queue_foreach_remove(state_machines, eapol_sm_ifindex_match,