eapol: Add eapol_sm_set_ap_rsn
This commit is contained in:
parent
f85c860cc3
commit
08b2980fd6
|
@ -461,3 +461,11 @@ void eapol_sm_set_pmk(struct eapol_sm *sm, const uint8_t *pmk)
|
||||||
{
|
{
|
||||||
memcpy(sm->pmk, pmk, sizeof(sm->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);
|
||||||
|
}
|
||||||
|
|
|
@ -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_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_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_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);
|
||||||
|
|
Loading…
Reference in New Issue