From: David Bauer Date: Thu, 9 Dec 2021 22:13:39 +0000 (+0100) Subject: ubus: skip current node for transition candidate list X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8e7b1ffc26117c4b0338a69f5a6fb396c18448bf;p=project%2Fusteer.git 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 --- diff --git a/ubus.c b/ubus.c index 768c9cf..1a78bbf 100644 --- a/ubus.c +++ b/ubus.c @@ -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++; }