mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
scan: Put an upper bound on the scan interval
This commit is contained in:
parent
e009f6298a
commit
fa9ae4acb7
@ -849,6 +849,8 @@ static void scan_periodic_timeout(struct l_timeout *timeout, void *user_data)
|
||||
l_debug("scan_periodic_timeout: %" PRIx64, sc->wdev_id);
|
||||
|
||||
sc->sp.interval *= 2;
|
||||
if (sc->sp.interval > SCAN_MAX_INTERVAL)
|
||||
sc->sp.interval = SCAN_MAX_INTERVAL;
|
||||
|
||||
scan_periodic_queue(sc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user