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

sae: include password identifier IE in commit

Include the IE if a password identifier is being used. This is only
supported by H2E as required by 802.11.
This commit is contained in:
James Prestwood 2023-12-05 07:46:42 -08:00 committed by Denis Kenzior
parent c1d40e2263
commit 737ebf437f

View File

@ -637,6 +637,14 @@ old_commit:
ie_tlv_builder_set_data(&builder, sm->token, sm->token_len);
}
if (sm->sae_type == CRYPTO_SAE_HASH_TO_ELEMENT &&
sm->handshake->password_identifier) {
ie_tlv_builder_next(&builder, IE_TYPE_PASSWORD_IDENTIFIER);
ie_tlv_builder_set_data(&builder,
sm->handshake->password_identifier,
strlen(sm->handshake->password_identifier));
}
ie_tlv_builder_finalize(&builder, &len);
return ptr - commit + len;