ubus: skip current node for transition candidate list
authorDavid Bauer <mail@david-bauer.net>
Thu, 9 Dec 2021 22:13:39 +0000 (23:13 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 10 Dec 2021 16:30:45 +0000 (17:30 +0100)
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>
ubus.c

diff --git a/ubus.c b/ubus.c
index 768c9cf03b022bc4e2c7e74f135bf7d3b461bfdb..1a78bbfd76a78bd3993fa88eb2d1df70eecc278b 100644 (file)
--- 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++;
        }