3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

eapol: Move eapol_cancel

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

View File

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