3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

eapol: add eapol_set_started

FILS does not require an eapol_sm for authentication, but rekeys
are still performed using the 4-way handshake. Because of this
FILS needs to create a eapol_sm in a 'started' state, but without
calling eapol_start as this will initialize EAP and create handshake
timeouts.

This allows EAPoL to wait for any 4-way packets, and handle them
as rekeys.
This commit is contained in:
James Prestwood 2019-04-17 15:16:38 -07:00 committed by Denis Kenzior
parent 433373fe28
commit 82eeef1c29
2 changed files with 6 additions and 0 deletions

View File

@ -2201,6 +2201,11 @@ void __eapol_set_rekey_offload_func(eapol_rekey_offload_func_t func)
rekey_offload = func;
}
void eapol_set_started(struct eapol_sm *sm)
{
sm->started = true;
}
void eapol_register(struct eapol_sm *sm)
{
l_queue_push_head(state_machines, sm);

View File

@ -116,6 +116,7 @@ void eapol_sm_set_listen_interval(struct eapol_sm *sm, uint16_t interval);
void eapol_sm_set_user_data(struct eapol_sm *sm, void *user_data);
void eapol_sm_set_event_func(struct eapol_sm *sm, eapol_sm_event_func_t func);
void eapol_set_started(struct eapol_sm *sm);
void eapol_register(struct eapol_sm *sm);
bool eapol_start(struct eapol_sm *sm);