3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

eapol: include IGTK in 4-way handshake as AP

When SAE with MFP is being used, include the IGTK in message 3 of the
4-way handshake.
This commit is contained in:
John Brandt 2024-05-05 17:30:39 -07:00 committed by Denis Kenzior
parent 9274f70fec
commit 5fb3ac5937

View File

@ -1456,6 +1456,19 @@ static void eapol_send_ptk_3_of_4(struct eapol_sm *sm)
key_data_len += gtk_kde[1] + 2;
}
if (sm->handshake->mfp) {
enum crypto_cipher group_management_cipher =
ie_rsn_cipher_suite_to_cipher(
sm->handshake->group_management_cipher);
uint8_t *igtk_kde = key_data_buf + key_data_len;
handshake_util_build_igtk_kde(group_management_cipher,
sm->handshake->igtk,
sm->handshake->igtk_index,
igtk_kde);
key_data_len += igtk_kde[1] + 2;
}
if (sm->handshake->support_ip_allocation &&
!sm->handshake->client_ip_addr) {
handshake_event(sm->handshake, HANDSHAKE_EVENT_P2P_IP_REQUEST);