ubus: skip current node for transition candidate list

Don't add the node the client is forced to leave as a potential
transition candidate.

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer
2021-12-09 23:13:39 +01:00
parent e51ea7ac1a
commit 8e7b1ffc26

2
ubus.c
View File

@@ -518,6 +518,8 @@ usteer_ubus_disassoc_add_neighbors(struct sta_info *si)
for_each_local_node(node) {
if (i >= config.max_neighbor_reports)
break;
if (si->node == node)
continue;
if (usteer_add_nr_entry(si->node, node))
i++;
}