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 <mail@david-bauer.net>
This commit is contained in:
4
policy.c
4
policy.c
@@ -401,6 +401,10 @@ usteer_local_node_roam_sm_active(struct sta_info *si, int min_signal)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user