3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

eapol: Add eapol_sm_set_own_rsn

This commit is contained in:
Denis Kenzior 2015-02-24 10:58:43 -06:00
parent 08b2980fd6
commit 2e1e484f95
2 changed files with 10 additions and 0 deletions

View File

@ -469,3 +469,11 @@ void eapol_sm_set_ap_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
l_free(sm->ap_rsn);
sm->ap_rsn = l_memdup(rsn_ie, len);
}
void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
size_t len)
{
sm->own_rsn_size = len;
l_free(sm->own_rsn);
sm->own_rsn = l_memdup(rsn_ie, len);
}

View File

@ -130,3 +130,5 @@ void eapol_sm_set_aa_address(struct eapol_sm *sm, const uint8_t *aa_addr);
void eapol_sm_set_pmk(struct eapol_sm *sm, const uint8_t *pmk);
void eapol_sm_set_ap_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
size_t len);
void eapol_sm_set_own_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
size_t len);