]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
driver: Add MLD link id to AP parameters
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 22 May 2023 19:33:33 +0000 (22:33 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Jun 2023 17:37:07 +0000 (20:37 +0300)
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
src/drivers/driver.h

index de944fed37136e73e3ea6df1b42af49652e2e0d5..5e9ced1e25d80a09f881d5a7f896a94348b38254 100644 (file)
@@ -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;
 }
 
index 529826b169eb06ea52bffce738cba6aa8d76ccac..b4c306e5f96bcb3447092e172bde4d1564693e4d 100644 (file)
@@ -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 {