From 918b809d6465a18444f7796ead1251c5a37dc6f9 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 21 Dec 2021 13:24:14 +0100 Subject: [PATCH] policy: only select candidates with better load When kicking clients due to high channel load, explicitly only select new candidates in case their channel load is an improvement over the current node. Signed-off-by: David Bauer --- policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy.c b/policy.c index 95c2843..4ed85a1 100644 --- a/policy.c +++ b/policy.c @@ -454,7 +454,7 @@ usteer_local_node_kick(struct usteer_local_node *ln) if (is_more_kickable(kick1, si)) kick1 = si; - tmp = find_better_candidate(si, NULL, 0); + tmp = find_better_candidate(si, NULL, (1 << UEV_SELECT_REASON_LOAD)); if (!tmp) continue;