[PATCH v2 03/15] driver: Modify authentication and association APIs to support MLO
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Wed Nov 30 05:09:27 PST 2022
From: Ilan Peer <ilan.peer at intel.com>
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/drivers/driver.h | 52 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 0b019e3afd..079f54db4e 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -720,6 +720,21 @@ struct wpa_driver_auth_params {
* auth_data_len - Length of auth_data buffer in octets
*/
size_t auth_data_len;
+
+ /**
+ * mld - Establish an MLD connection
+ */
+ bool mld;
+
+ /**
+ * mld_link_id - The link ID of the MLD AP to which we are associating
+ */
+ u8 mld_link_id;
+
+ /**
+ * The MLD AP address
+ */
+ const u8 *ap_mld_addr;
};
/**
@@ -883,6 +898,38 @@ struct wpa_driver_sta_auth_params {
size_t fils_kek_len;
};
+struct wpa_driver_mld_params {
+ /**
+ * mld_addr - AP's MLD address
+ */
+ const u8 *mld_addr;
+
+ /**
+ * valid_links - The valid links including the association link
+ */
+ u16 valid_links;
+
+ /**
+ * assoc_link_id - The link on which the association is performed.
+ */
+ u8 assoc_link_id;
+
+ /**
+ * mld_links - link information.
+ *
+ * Should include information on all the requested links for association
+ * including the link on which the association should take place.
+ * For the association link, the 'ies' and 'ies_len' should be NULL and
+ * 0 respectively.
+ */
+ struct {
+ int freq;
+ const u8 *bssid;
+ const u8 *ies;
+ size_t ies_len;
+ } mld_links[MAX_NUM_MLD_LINKS];
+};
+
/**
* struct wpa_driver_associate_params - Association parameters
* Data for struct wpa_driver_ops::associate().
@@ -1256,6 +1303,11 @@ struct wpa_driver_associate_params {
* disable_eht - Disable EHT for this connection
*/
int disable_eht;
+
+ /*
+ * mld_params - MLD association parameters
+ */
+ struct wpa_driver_mld_params mld_params;
};
enum hide_ssid {
--
2.25.1
More information about the Hostap
mailing list