mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +01:00
eapol: Pass decrypted data len
to eapol_handle_ptk_3_of_4
This commit is contained in:
parent
63718343e5
commit
bfdd4a2328
@ -533,7 +533,8 @@ fail:
|
|||||||
|
|
||||||
static void eapol_handle_ptk_3_of_4(int ifindex, struct eapol_sm *sm,
|
static void eapol_handle_ptk_3_of_4(int ifindex, struct eapol_sm *sm,
|
||||||
const struct eapol_key *ek,
|
const struct eapol_key *ek,
|
||||||
const uint8_t *decrypted_key_data)
|
const uint8_t *decrypted_key_data,
|
||||||
|
size_t decrypted_key_data_size)
|
||||||
{
|
{
|
||||||
struct crypto_ptk *ptk = (struct crypto_ptk *) sm->ptk;
|
struct crypto_ptk *ptk = (struct crypto_ptk *) sm->ptk;
|
||||||
struct eapol_key *step4;
|
struct eapol_key *step4;
|
||||||
@ -655,7 +656,8 @@ void __eapol_rx_packet(int ifindex, const uint8_t *sta_addr,
|
|||||||
if (!ek->key_mic)
|
if (!ek->key_mic)
|
||||||
eapol_handle_ptk_1_of_4(ifindex, sm, ek);
|
eapol_handle_ptk_1_of_4(ifindex, sm, ek);
|
||||||
else
|
else
|
||||||
eapol_handle_ptk_3_of_4(ifindex, sm, ek, decrypted_key_data);
|
eapol_handle_ptk_3_of_4(ifindex, sm, ek, decrypted_key_data,
|
||||||
|
decrypted_key_data_len);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
l_free(decrypted_key_data);
|
l_free(decrypted_key_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user