From: Andrei Otcheretianski Date: Mon, 22 May 2023 19:33:33 +0000 (+0300) Subject: driver: Add MLD link id to AP parameters X-Git-Tag: hostap_2_11~1152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be44a7afd598e2ef949b8b5bd057560e0a20a564;p=thirdparty%2Fhostap.git driver: Add MLD link id to AP parameters To be used in later patches, e.g., for link tracking etc. Signed-off-by: Andrei Otcheretianski Signed-off-by: Ilan Peer --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index de944fed3..5e9ced1e2 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 529826b16..b4c306e5f 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -1770,6 +1770,16 @@ struct wpa_driver_ap_params { * channels whenever performing operations like ACS and DFS. */ int *allowed_freqs; + + /* + * mld_ap - Whether operating as an AP MLD + */ + bool mld_ap; + + /** + * mld_link_id - Link id for MLD BSS's + */ + u8 mld_link_id; }; struct wpa_driver_mesh_bss_params {