mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:12:36 +01:00
eapol: Move eapol_cancel
This commit is contained in:
parent
d307d3ff11
commit
e059ee01a7
12
src/eapol.c
12
src/eapol.c
@ -772,12 +772,6 @@ static bool eapol_sm_ifindex_match(void *data, void *user_data)
|
||||
return true;
|
||||
}
|
||||
|
||||
void eapol_cancel(uint32_t ifindex)
|
||||
{
|
||||
l_queue_foreach_remove(state_machines, eapol_sm_ifindex_match,
|
||||
L_UINT_TO_PTR(ifindex));
|
||||
}
|
||||
|
||||
static inline void handshake_failed(uint32_t ifindex, struct eapol_sm *sm,
|
||||
uint16_t reason_code)
|
||||
{
|
||||
@ -1658,6 +1652,12 @@ static bool eapol_get_nonce(uint8_t nonce[])
|
||||
return l_getrandom(nonce, 32);
|
||||
}
|
||||
|
||||
void eapol_cancel(uint32_t ifindex)
|
||||
{
|
||||
l_queue_foreach_remove(state_machines, eapol_sm_ifindex_match,
|
||||
L_UINT_TO_PTR(ifindex));
|
||||
}
|
||||
|
||||
bool eapol_init()
|
||||
{
|
||||
state_machines = l_queue_new();
|
||||
|
Loading…
Reference in New Issue
Block a user