eapol: Use bit_field from ell

This commit is contained in:
Denis Kenzior 2021-03-11 22:33:06 -06:00
parent e467566866
commit 3dae0592b0
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#include <errno.h>
#include <ell/ell.h>
#include "ell/useful.h"
#include "src/missing.h"
#include "src/module.h"
#include "src/crypto.h"
@ -1707,7 +1708,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm,
/* TODO: Handle tx bit */
gtk_key_index = util_bit_field(gtk[0], 0, 2);
gtk_key_index = bit_field(gtk[0], 0, 2);
gtk += 2;
gtk_len -= 2;
} else
@ -1898,7 +1899,7 @@ static void eapol_handle_gtk_1_of_2(struct eapol_sm *sm,
if (!gtk)
return;
gtk_key_index = util_bit_field(gtk[0], 0, 2);
gtk_key_index = bit_field(gtk[0], 0, 2);
gtk += 2;
gtk_len -= 2;
} else {