diff mbox series

[03/50] driver: Add MLD link id to AP parameters

Message ID 20230215230904.933291-4-andrei.otcheretianski@intel.com
State Changes Requested
Headers show
Series Add basic MLO support for AP | expand

Commit Message

Andrei Otcheretianski Feb. 15, 2023, 11:08 p.m. UTC
To be used in later patches, e.g., for link tracking etc.

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

Patch

diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index dbc6b062b8..14cde4c584 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -1974,6 +1974,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->conf->mld_link_id;
+	}
+#endif /* CONFIG_IEEE80211BE */
+
 	return 0;
 }
 
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index a2bea930f9..3c5f41b087 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -1724,6 +1724,16 @@  struct wpa_driver_ap_params {
 	 * ema - Enhanced MBSSID advertisements support.
 	 */
 	bool ema;
+
+	/**
+	 * MLD AP
+	 */
+	bool mld_ap;
+
+	/**
+	 * Link id for MLD BSS's
+	 */
+	u8 mld_link_id;
 };
 
 struct wpa_driver_mesh_bss_params {