From: David Bauer Date: Thu, 5 May 2022 21:42:01 +0000 (+0200) Subject: policy: abort kick process for missing candidate X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=46539ae5b424163d09aab9c89b0359ad4cb74a9f;p=project%2Fusteer.git policy: abort kick process for missing candidate Don't continue the kick process in case no candidate is found. Signed-off-by: David Bauer --- diff --git a/policy.c b/policy.c index 43becc1..a7efc06 100644 --- a/policy.c +++ b/policy.c @@ -361,8 +361,10 @@ usteer_roam_trigger_sm(struct usteer_local_node *ln, struct sta_info *si) case ROAM_TRIGGER_SCAN_DONE: candidate = usteer_roam_sm_found_better_node(si, &ev, ROAM_TRIGGER_SCAN_DONE); /* Kick back in case no better node is found */ - if (!candidate) + if (!candidate) { usteer_roam_set_state(si, ROAM_TRIGGER_IDLE, &ev); + break; + } usteer_ubus_bss_transition_request(si, 1, false, false, 100, candidate->node); si->kick_time = current_time + config.roam_kick_delay;