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 <mail@david-bauer.net>
/* 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;
}