Skip to content

Commit 9850052

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

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
@@ -10,6 +10,7 @@
1010
#include "dfs.h"
1111
#include "acs.h"
1212
#include "ieee802_11_auth.h"
13+
#include "neighbor_db.h"
1314
#include <libubox/uloop.h>
1415

1516
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)
262263
memcpy(hapd->own_addr, hapd->conf->bssid, ETH_ALEN);
263264

264265
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
266+
hostapd_neighbor_set_own_report(hapd);
265267
hostapd_ucode_update_interfaces();
266268
hostapd_owe_update_trans(iface);
267269

@@ -387,6 +389,7 @@ uc_hostapd_iface_add_bss(uc_vm_t *vm, size_t nargs)
387389
iface->conf->bss[iface->conf->num_bss] = bss;
388390
conf->bss[idx] = NULL;
389391
ret = hostapd_ucode_bss_get_uval(hapd);
392+
hostapd_neighbor_set_own_report(hapd);
390393
hostapd_ucode_update_interfaces();
391394
hostapd_owe_update_trans(iface);
392395
goto out;

0 commit comments

Comments
 (0)