AP: Avoid setting same MLD and link address

For AP MLD, when BSSID configuration is specified without mld_addr, the
first link address is used as the MLD MAC address as well. Though IEEE
P802.11be allows this, the current implementation and the kernel aren't
happy about it. Better avoid this.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
Andrei Otcheretianski 2023-11-21 01:51:39 +02:00 committed by Jouni Malinen
parent e5917e2a5b
commit f60287e6c9

View file

@ -247,8 +247,12 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
* Use the configured MLD MAC address as the interface hardware address
* if this AP is a part of an AP MLD.
*/
if (!is_zero_ether_addr(hapd->conf->mld_addr) && hapd->conf->mld_ap)
params.bssid = hapd->conf->mld_addr;
if (hapd->conf->mld_ap) {
if (!is_zero_ether_addr(hapd->conf->mld_addr))
params.bssid = hapd->conf->mld_addr;
else
params.bssid = NULL;
}
#endif /* CONFIG_IEEE80211BE */
params.ifname = hapd->conf->iface;