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_ap_rsn

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

View File

@ -461,3 +461,11 @@ void eapol_sm_set_pmk(struct eapol_sm *sm, const uint8_t *pmk)
{
memcpy(sm->pmk, pmk, sizeof(sm->pmk));
}
void eapol_sm_set_ap_rsn(struct eapol_sm *sm, const uint8_t *rsn_ie,
size_t len)
{
sm->ap_rsn_size = len;
l_free(sm->ap_rsn);
sm->ap_rsn = l_memdup(rsn_ie, len);
}

View File

@ -128,3 +128,5 @@ void eapol_sm_free(struct eapol_sm *sm);
void eapol_sm_set_sta_address(struct eapol_sm *sm, const uint8_t *sta_addr);
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);