mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
scan: Call scan_finished if results->sr is NULL
results->sr is set to NULL for 'opportunistic' scans which were triggered externally. See scan_notify() for details. However, get_scan_done would only invoke scan_finished (and thus the periodic scan callback sc->sp.callback) only if the scan queue was empty. It should do so in all cases.
This commit is contained in:
parent
188d09af42
commit
e1593df4bd
@ -1735,7 +1735,7 @@ static void get_scan_done(void *user)
|
|||||||
|
|
||||||
sc->get_scan_cmd_id = 0;
|
sc->get_scan_cmd_id = 0;
|
||||||
|
|
||||||
if (l_queue_peek_head(sc->requests) == results->sr)
|
if (!results->sr || l_queue_peek_head(sc->requests) == results->sr)
|
||||||
scan_finished(sc, 0, results->bss_list,
|
scan_finished(sc, 0, results->bss_list,
|
||||||
results->freqs, results->sr);
|
results->freqs, results->sr);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user