mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-02 00:37:01 +02:00
eapol: Move eapol_start
This commit is contained in:
parent
e059ee01a7
commit
b6d651dda8
14
src/eapol.c
14
src/eapol.c
@ -791,13 +791,6 @@ static void eapol_timeout(struct l_timeout *timeout, void *user_data)
|
|||||||
MPDU_REASON_CODE_4WAY_HANDSHAKE_TIMEOUT);
|
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,
|
static void eapol_handle_ptk_1_of_4(uint32_t ifindex, struct eapol_sm *sm,
|
||||||
const struct eapol_key *ek)
|
const struct eapol_key *ek)
|
||||||
{
|
{
|
||||||
@ -1652,6 +1645,13 @@ static bool eapol_get_nonce(uint8_t nonce[])
|
|||||||
return l_getrandom(nonce, 32);
|
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)
|
void eapol_cancel(uint32_t ifindex)
|
||||||
{
|
{
|
||||||
l_queue_foreach_remove(state_machines, eapol_sm_ifindex_match,
|
l_queue_foreach_remove(state_machines, eapol_sm_ifindex_match,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user