[PATCH 08/15] handshake: add vendor quirks into handshake object
James Prestwood <[email protected]> Fri, 22 Aug 2025 12:51:11 -0700
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
---
src/handshake.c | 6 ++++++
src/handshake.h | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/src/handshake.c b/src/handshake.c
index 92edac30..02f0e436 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -368,6 +368,12 @@ void handshake_state_set_vendor_ies(struct handshake_state *s,
}
}
+void handshake_state_set_vendor_quirks(struct handshake_state *s,
+ uint32_t quirks_mask)
+{
+ s->vendor_quirks = quirks_mask;
+}
+
void handshake_state_set_kh_ids(struct handshake_state *s,
const uint8_t *r0khid, size_t r0khid_len,
const uint8_t *r1khid)
diff --git a/src/handshake.h b/src/handshake.h
index b8891490..df0f8315 100644
--- a/src/handshake.h
+++ b/src/handshake.h
@@ -107,6 +107,7 @@ struct handshake_state {
uint8_t *authenticator_fte;
uint8_t *supplicant_fte;
uint8_t *vendor_ies;
+ uint32_t vendor_quirks;
size_t vendor_ies_len;
enum ie_rsn_cipher_suite pairwise_cipher;
enum ie_rsn_cipher_suite group_cipher;
@@ -237,6 +238,9 @@ void handshake_state_set_vendor_ies(struct handshake_state *s,
const struct iovec *iov,
size_t n_iovs);
+void handshake_state_set_vendor_quirks(struct handshake_state *s,
+ uint32_t quirks_mask);
+
void handshake_state_set_kh_ids(struct handshake_state *s,
const uint8_t *r0khid, size_t r0khid_len,
const uint8_t *r1khid);
--
2.34.1