mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 06:02:39 +01:00
eapol: Fix IGTK key index extraction
IGTK key index is a 2-byte little-endian field, not a bit field. This makes sense since IGTK key id can only be 4 or 5.
This commit is contained in:
parent
20c8761711
commit
fea29229f3
@ -1224,7 +1224,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm,
|
||||
if (!igtk || igtk_len < 8)
|
||||
return;
|
||||
|
||||
igtk_key_index = util_bit_field(igtk[0], 0, 2);
|
||||
igtk_key_index = l_get_le16(igtk);;
|
||||
igtk += 2;
|
||||
igtk_len -= 2;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user