mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 13:59:24 +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:
parent
157d5f9f47
commit
b560ca6173
@ -578,7 +578,8 @@ bool scan_cancel(uint32_t ifindex, uint32_t id)
|
||||
l_queue_remove(sc->requests, sr);
|
||||
sc->started = false;
|
||||
start_next_scan_request(sc);
|
||||
}
|
||||
} else
|
||||
l_queue_remove(sc->requests, sr);
|
||||
|
||||
scan_request_free(sr);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user