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

eapol: Add eapol_sm_set_sta_address

This commit is contained in:
Denis Kenzior 2015-02-24 10:55:50 -06:00
parent 2866fbbf91
commit 122dfe7025
2 changed files with 7 additions and 0 deletions

View File

@ -446,3 +446,8 @@ void eapol_sm_free(struct eapol_sm *sm)
{ {
eapol_sm_destroy(sm); eapol_sm_destroy(sm);
} }
void eapol_sm_set_sta_address(struct eapol_sm *sm, const uint8_t *sta_addr)
{
memcpy(sm->sta_addr, sta_addr, sizeof(sm->sta_addr));
}

View File

@ -124,3 +124,5 @@ struct eapol_key *eapol_create_ptk_4_of_4(
struct eapol_sm *eapol_sm_new(); struct eapol_sm *eapol_sm_new();
void eapol_sm_free(struct eapol_sm *sm); void eapol_sm_free(struct eapol_sm *sm);
void eapol_sm_set_sta_address(struct eapol_sm *sm, const uint8_t *sta_addr);