summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-06-20 12:26:27 +0000
committerFelix Fietkau2025-06-20 12:58:29 +0000
commitd848c2790d0263e2637d785f894589778dd38a60 (patch)
treea926ff155283b0ffc7fd2031ce74f2c0560ed49d
parentba25b419134e4295cec45bd2d1040d469ad48340 (diff)
downloadopenwrt-d848c2790d0263e2637d785f894589778dd38a60.tar.gz
hostapd: fix generating own neighbor report for dynamically added/changed interfaces
hostapd_neighbor_set_own_report is normally called from interface setup only. Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 985005219020ac1446e28217bfdd7a0a7a7a59d0)
-rw-r--r--package/network/services/hostapd/src/src/ap/ucode.c3
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 758bb81ab2..3b1f052abc 100644
--- a/package/network/services/hostapd/src/src/ap/ucode.c
+++ b/package/network/services/hostapd/src/src/ap/ucode.c
@@ -10,6 +10,7 @@
#include "dfs.h"
#include "acs.h"
#include "ieee802_11_auth.h"
+#include "neighbor_db.h"
#include <libubox/uloop.h>
static uc_resource_type_t *global_type, *bss_type, *iface_type;
@@ -262,6 +263,7 @@ uc_hostapd_bss_set_config(uc_vm_t *vm, size_t nargs)
memcpy(hapd->own_addr, hapd->conf->bssid, ETH_ALEN);
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
+ hostapd_neighbor_set_own_report(hapd);
hostapd_ucode_update_interfaces();
hostapd_owe_update_trans(iface);
@@ -387,6 +389,7 @@ uc_hostapd_iface_add_bss(uc_vm_t *vm, size_t nargs)
iface->conf->bss[iface->conf->num_bss] = bss;
conf->bss[idx] = NULL;
ret = hostapd_ucode_bss_get_uval(hapd);
+ hostapd_neighbor_set_own_report(hapd);
hostapd_ucode_update_interfaces();
hostapd_owe_update_trans(iface);
goto out;