hostapd: fix dealing with mac address changes for the primary BSS
Ensure that hapd->own_addr is set properly, since hostapd_setup_bss only handles it for secondary BSS interfaces Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
7e014bbe0b
commit
3ebf110711
1 changed files with 3 additions and 0 deletions
|
@ -258,6 +258,9 @@ uc_hostapd_bss_set_config(uc_vm_t *vm, size_t nargs)
|
|||
hapd->conf = conf->bss[idx];
|
||||
conf->bss[idx] = old_bss;
|
||||
|
||||
if (hapd == iface->bss[0])
|
||||
memcpy(hapd->own_addr, hapd->conf->bssid, ETH_ALEN);
|
||||
|
||||
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
|
||||
hostapd_ucode_update_interfaces();
|
||||
hostapd_owe_update_trans(iface);
|
||||
|
|
Loading…
Reference in a new issue