mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
eapol: send OCI in handshake 2/4
This commit is contained in:
parent
23fb4493df
commit
1e9c3b3d1e
16
src/eapol.c
16
src/eapol.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user