3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

eapol: send OCI in handshake 2/4

This commit is contained in:
James Prestwood 2021-09-27 10:03:58 -07:00 committed by Denis Kenzior
parent 23fb4493df
commit 1e9c3b3d1e

View File

@ -43,6 +43,7 @@
#include "src/watchlist.h"
#include "src/erp.h"
#include "src/iwd.h"
#include "src/band.h"
static struct l_queue *state_machines;
static struct l_queue *preauths;
@ -1244,6 +1245,21 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm,
ies[ies_len++] = 0x01;
}
/*
* IEEE 802.11-2020 Section 12.7.6.3
* "Additionally, contains an OCI KDE when
* dot11RSNAOperatingChannelValidationActivated is true on the
* Supplicant."
*/
if (sm->handshake->supplicant_ocvc && sm->handshake->chandef) {
ies[ies_len++] = IE_TYPE_VENDOR_SPECIFIC;
ies[ies_len++] = 4 + 3;
l_put_be32(HANDSHAKE_KDE_OCI, ies + ies_len);
ies_len += 4;
oci_from_chandef(sm->handshake->chandef, ies + ies_len++);
ies_len += 3;
}
/*
* 802.11-2020, Section 12.7.6.3:
* "The RSNXE that the Supplicant sent in its (Re)Association Request