From 408bbcab6a957658f186b1b52adb42d537f3843e Mon Sep 17 00:00:00 2001 From: David Bauer Date: Thu, 5 May 2022 01:07:14 +0200 Subject: [PATCH] policy: don't kick clients immediatly The roam-kick-delay was not honored prior this patch. Because of this, a client got kicked immediately. Signed-off-by: David Bauer --- policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy.c b/policy.c index 7d3b14f..43becc1 100644 --- a/policy.c +++ b/policy.c @@ -365,7 +365,7 @@ usteer_roam_trigger_sm(struct usteer_local_node *ln, struct sta_info *si) usteer_roam_set_state(si, ROAM_TRIGGER_IDLE, &ev); usteer_ubus_bss_transition_request(si, 1, false, false, 100, candidate->node); - si->kick_time = current_time; + si->kick_time = current_time + config.roam_kick_delay; usteer_roam_set_state(si, ROAM_TRIGGER_IDLE, &ev); break; } -- 2.30.2