mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-19 18:40:44 +01:00
unit: make sure that MIC calculation succeeds
This commit is contained in:
parent
df8d60d7e1
commit
729d2d7f2c
@ -526,7 +526,7 @@ static void eapol_4way_test(const void *data)
|
|||||||
eapol_key_data_4 + sizeof(struct eapol_key));
|
eapol_key_data_4 + sizeof(struct eapol_key));
|
||||||
assert(frame);
|
assert(frame);
|
||||||
|
|
||||||
eapol_calculate_mic(ptk->kck, frame, mic);
|
assert(eapol_calculate_mic(ptk->kck, frame, mic));
|
||||||
|
|
||||||
memcpy(frame->key_mic_data, mic, sizeof(mic));
|
memcpy(frame->key_mic_data, mic, sizeof(mic));
|
||||||
l_util_hexdump(true, (uint8_t *) frame, sizeof(eapol_key_data_4),
|
l_util_hexdump(true, (uint8_t *) frame, sizeof(eapol_key_data_4),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user