[PATCH v2 05/44] driver: Add MLD link id to AP parameters

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon May 22 12:33:33 PDT 2023


To be used in later patches, e.g., for link tracking etc.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/ap/beacon.c      |  8 ++++++++
 src/drivers/driver.h | 10 ++++++++++
 2 files changed, 18 insertions(+)

diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index de944fed37..5e9ced1e25 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -2030,6 +2030,14 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
 		}
 	}
 
+#ifdef CONFIG_IEEE80211BE
+	if (hapd->conf->mld_ap && hapd->iconf->ieee80211be &&
+	    !hapd->conf->disable_11be) {
+		params->mld_ap = true;
+		params->mld_link_id = hapd->mld_link_id;
+	}
+#endif /* CONFIG_IEEE80211BE */
+
 	return 0;
 }
 
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index d373353d37..2831955e81 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -1758,6 +1758,16 @@ struct wpa_driver_ap_params {
 	 * channels whenever performing operations like ACS and DFS.
 	 */
 	int *allowed_freqs;
+
+	/*
+	 * MLD AP
+	 */
+	bool mld_ap;
+
+	/**
+	 * Link id for MLD BSS's
+	 */
+	u8 mld_link_id;
 };
 
 struct wpa_driver_mesh_bss_params {
-- 
2.38.1




More information about the Hostap mailing list