From c19c885b97b12abba7c688fcef40ff6674ef138e Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 22 Feb 2022 23:08:10 +0100 Subject: [PATCH] policy: move load-kick out of kick meta-function Signed-off-by: David Bauer --- policy.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/policy.c b/policy.c index 329852e..3d07ced 100644 --- a/policy.c +++ b/policy.c @@ -463,8 +463,8 @@ usteer_local_node_snr_kick(struct usteer_local_node *ln) } } -void -usteer_local_node_kick(struct usteer_local_node *ln) +static void +usteer_local_node_load_kick(struct usteer_local_node *ln) { struct usteer_node *node = &ln->node; struct sta_info *kick1 = NULL, *kick2 = NULL; @@ -475,9 +475,6 @@ usteer_local_node_kick(struct usteer_local_node *ln) }; unsigned int min_count = DIV_ROUND_UP(config.load_kick_delay, config.local_sta_update); - usteer_local_node_roam_check(ln, &ev); - usteer_local_node_snr_kick(ln); - if (!config.load_kick_enabled || !config.load_kick_threshold || !config.load_kick_delay) return; @@ -550,3 +547,16 @@ usteer_local_node_kick(struct usteer_local_node *ln) out: usteer_event(&ev); } + + +void +usteer_local_node_kick(struct usteer_local_node *ln) +{ + struct uevent ev = { + .node_local = &ln->node, + }; + + usteer_local_node_roam_check(ln, &ev); + usteer_local_node_snr_kick(ln); + usteer_local_node_load_kick(ln); +} -- 2.30.2