mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-25 08:02:38 +01:00
eapol: Print a message if MIC calculation fails
This commit is contained in:
parent
b27c47aa77
commit
86e7883c74
@ -534,8 +534,11 @@ static void eapol_handle_ptk_1_of_4(uint32_t ifindex, struct eapol_sm *sm,
|
|||||||
sm->snonce,
|
sm->snonce,
|
||||||
sm->own_rsn[1] + 2, sm->own_rsn);
|
sm->own_rsn[1] + 2, sm->own_rsn);
|
||||||
|
|
||||||
if (!eapol_calculate_mic(ptk->kck, step2, mic))
|
if (!eapol_calculate_mic(ptk->kck, step2, mic)) {
|
||||||
|
l_info("MIC calculation failed. "
|
||||||
|
"Ensure Kernel Crypto is available.");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy(step2->key_mic_data, mic, sizeof(mic));
|
memcpy(step2->key_mic_data, mic, sizeof(mic));
|
||||||
tx_packet(ifindex, sm->aa, sm->spa, step2, user_data);
|
tx_packet(ifindex, sm->aa, sm->spa, step2, user_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user