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>
This commit is contained in:
parent
3ebf110711
commit
9850052190
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "dfs.h"
|
#include "dfs.h"
|
||||||
#include "acs.h"
|
#include "acs.h"
|
||||||
#include "ieee802_11_auth.h"
|
#include "ieee802_11_auth.h"
|
||||||
|
#include "neighbor_db.h"
|
||||||
#include <libubox/uloop.h>
|
#include <libubox/uloop.h>
|
||||||
|
|
||||||
static uc_resource_type_t *global_type, *bss_type, *iface_type;
|
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);
|
memcpy(hapd->own_addr, hapd->conf->bssid, ETH_ALEN);
|
||||||
|
|
||||||
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
|
hostapd_setup_bss(hapd, hapd == iface->bss[0], true);
|
||||||
|
hostapd_neighbor_set_own_report(hapd);
|
||||||
hostapd_ucode_update_interfaces();
|
hostapd_ucode_update_interfaces();
|
||||||
hostapd_owe_update_trans(iface);
|
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;
|
iface->conf->bss[iface->conf->num_bss] = bss;
|
||||||
conf->bss[idx] = NULL;
|
conf->bss[idx] = NULL;
|
||||||
ret = hostapd_ucode_bss_get_uval(hapd);
|
ret = hostapd_ucode_bss_get_uval(hapd);
|
||||||
|
hostapd_neighbor_set_own_report(hapd);
|
||||||
hostapd_ucode_update_interfaces();
|
hostapd_ucode_update_interfaces();
|
||||||
hostapd_owe_update_trans(iface);
|
hostapd_owe_update_trans(iface);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue