3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

scan: Make sure request is unqueued in scan_cancel

We were forgetting to handle the case of scan requests that are not at the
top of the queue.
This commit is contained in:
Andrew Zaborowski 2019-05-11 01:18:56 +02:00 committed by Denis Kenzior
parent 157d5f9f47
commit b560ca6173

View File

@ -578,7 +578,8 @@ bool scan_cancel(uint32_t ifindex, uint32_t id)
l_queue_remove(sc->requests, sr); l_queue_remove(sc->requests, sr);
sc->started = false; sc->started = false;
start_next_scan_request(sc); start_next_scan_request(sc);
} } else
l_queue_remove(sc->requests, sr);
scan_request_free(sr); scan_request_free(sr);
return true; return true;