diff options
| author | Felix Fietkau | 2025-06-20 12:20:36 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-06-20 12:57:35 +0000 |
| commit | 3ebf11071159d8b2d238cfd19cadad85059fe7e3 (patch) | |
| tree | 1c1be6e8e6e67d55d8a39b185e694b881038f536 | |
| parent | 7e014bbe0b1591dada6ea5abfd70a2177d1a2747 (diff) | |
| download | openwrt-3ebf11071159d8b2d238cfd19cadad85059fe7e3.tar.gz | |
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>
| -rw-r--r-- | package/network/services/hostapd/src/src/ap/ucode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ucode.c b/package/network/services/hostapd/src/src/ap/ucode.c index 393e8f86c7..9486108e62 100644 --- a/package/network/services/hostapd/src/src/ap/ucode.c +++ b/package/network/services/hostapd/src/src/ap/ucode.c @@ -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); |