Skip to content

Commit 3ebf110

Browse files
committed
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>
1 parent 7e014bb commit 3ebf110

File tree

1 file changed

+3
-0
lines changed
  • package/network/services/hostapd/src/src/ap

1 file changed

+3
-0
lines changed

package/network/services/hostapd/src/src/ap/ucode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ uc_hostapd_bss_set_config(uc_vm_t *vm, size_t nargs)
258258
hapd->conf = conf->bss[idx];
259259
conf->bss[idx] = old_bss;
260260

261+
if (hapd == iface->bss[0])
262+
memcpy(hapd->own_addr, hapd->conf->bssid, ETH_ALEN);
263+
261264
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
262265
hostapd_ucode_update_interfaces();
263266
hostapd_owe_update_trans(iface);

0 commit comments

Comments
 (0)