diff options
| author | Felix Fietkau | 2025-06-20 12:20:36 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-06-20 12:58:28 +0000 |
| commit | ba25b419134e4295cec45bd2d1040d469ad48340 (patch) | |
| tree | fb5a548d930f4039357e06a90b007ab313c572f3 | |
| parent | 989b12999c5b7c35ec310d26ac6f01eb9567be6e (diff) | |
| download | openwrt-ba25b419134e4295cec45bd2d1040d469ad48340.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>
(cherry picked from commit 3ebf11071159d8b2d238cfd19cadad85059fe7e3)
| -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 b13c0ff77c..758bb81ab2 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); |