policy: don't kick clients immediatly
authorDavid Bauer <mail@david-bauer.net>
Wed, 4 May 2022 23:07:14 +0000 (01:07 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 5 May 2022 21:39:54 +0000 (23:39 +0200)
The roam-kick-delay was not honored prior this patch. Because of this, a
client got kicked immediately.

Signed-off-by: David Bauer <mail@david-bauer.net>
policy.c

index 7d3b14f65166dfddf1f13c46180f2f5950d1b106..43becc1d690434eb92b01acdd949a3b3b848a00d 100644 (file)
--- 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;
        }