mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-20 09:34:06 +01:00
scan: Don't immediately retry periodic scan on error
On a periodic scan trigger error we already set rearm to true, rearm the timer instead of retrying immediately.
This commit is contained in:
parent
1392a80d34
commit
5869b74c2e
@ -85,6 +85,7 @@ struct scan_results {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static bool start_next_scan_request(struct scan_context *sc);
|
static bool start_next_scan_request(struct scan_context *sc);
|
||||||
|
static void scan_periodic_rearm(struct scan_context *sc);
|
||||||
|
|
||||||
static bool scan_context_match(const void *a, const void *b)
|
static bool scan_context_match(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
@ -464,9 +465,8 @@ static void scan_periodic_done(struct l_genl_msg *msg, void *user_data)
|
|||||||
l_warn("Periodic scan could not be triggered: %s (%d)",
|
l_warn("Periodic scan could not be triggered: %s (%d)",
|
||||||
strerror(-err), -err);
|
strerror(-err), -err);
|
||||||
|
|
||||||
sc->sp.retry = true;
|
if (!start_next_scan_request(sc))
|
||||||
|
scan_periodic_rearm(sc);
|
||||||
start_next_scan_request(sc);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user