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 <andrei.otcheretianski@intel.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Andrei Otcheretianski 2023-05-22 22:33:33 +03:00 committed by Jouni Malinen
parent 7fa99b3246
commit be44a7afd5
2 changed files with 18 additions and 0 deletions

View 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;
}

View 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 {