eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1e9c3b3d1e0520c4b1e0f0a2b3353bd8218e26ab
parent 23fb4493df27196c2297d8f3d84c4ee77f50e369
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 27 Sep 2021 10:03:58 -0700

eapol: send OCI in handshake 2/4

Diffstat:
Msrc/eapol.c | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/eapol.c b/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; @@ -1245,6 +1246,21 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm, } /* + * 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 * frame, if this element is present in the (Re)Association Request