mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-30 14:22:37 +01:00
eapol: Add eapol_sm_get_own_ie
This commit is contained in:
parent
6d81e0a172
commit
b93ae37325
@ -749,6 +749,15 @@ uint32_t eapol_sm_get_group_cipher(struct eapol_sm *sm)
|
||||
return sm->group_cipher;
|
||||
}
|
||||
|
||||
const uint8_t *eapol_sm_get_own_ie(struct eapol_sm *sm, size_t *out_ie_len)
|
||||
{
|
||||
if (!sm->own_ie)
|
||||
return NULL;
|
||||
|
||||
*out_ie_len = sm->own_ie[1] + 2;
|
||||
return sm->own_ie;
|
||||
}
|
||||
|
||||
static bool eapol_sm_ifindex_match(void *data, void *user_data)
|
||||
{
|
||||
struct eapol_sm *sm = data;
|
||||
|
@ -190,6 +190,7 @@ void eapol_sm_set_tx_user_data(struct eapol_sm *sm, void *user_data);
|
||||
|
||||
uint32_t eapol_sm_get_pairwise_cipher(struct eapol_sm *sm);
|
||||
uint32_t eapol_sm_get_group_cipher(struct eapol_sm *sm);
|
||||
const uint8_t *eapol_sm_get_own_ie(struct eapol_sm *sm, size_t *out_ie_len);
|
||||
|
||||
struct l_io *eapol_open_pae(uint32_t index);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user