From: David Bauer Date: Wed, 17 Aug 2022 00:22:48 +0000 (+0200) Subject: policy: only trigger roam-sm after client becomes roamable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc158e0ec706efb32911377b1e1eda1930243021;p=project%2Fusteer.git policy: only trigger roam-sm after client becomes roamable Onky trigger the roaming-sm after a client becomes roamable. This is the case when a STA is connected for longer than roam_trigger_interval. Signed-off-by: David Bauer --- diff --git a/policy.c b/policy.c index 1a96cfa..90a12a0 100644 --- a/policy.c +++ b/policy.c @@ -400,6 +400,10 @@ usteer_local_node_roam_sm_active(struct sta_info *si, int min_signal) /* Skip on previous kick attempt */ if (current_time - si->roam_kick < config.roam_trigger_interval) return false; + + /* Skip if connection is established shorter than the trigger-interval */ + if (current_time - si->connected_since < config.roam_trigger_interval) + return false; return true; }