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:
parent
e5917e2a5b
commit
f60287e6c9
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue