3
0
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:
Denis Kenzior 2022-01-19 16:22:55 -06:00
parent 188d09af42
commit e1593df4bd

View File

@ -1735,7 +1735,7 @@ static void get_scan_done(void *user)
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,
results->freqs, results->sr);
else