From 8e7b1ffc26117c4b0338a69f5a6fb396c18448bf Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 9 Dec 2021 23:13:39 +0100 Subject: [PATCH] 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 --- ubus.c | 2 ++ 1 file changed, 2 insertions(+) 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++; } -- 2.30.2