mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 02:39:29 +01:00
scan: Call trigger callback on netlink error
Also call the trigger callback with an error code when sending the netlink command fails after the scan request has been queued because another scan was in progress when the scan was requested.
This commit is contained in:
parent
adfba7b2d2
commit
9f19a48433
@ -201,6 +201,9 @@ static void start_next_scan_request(void *userdata)
|
||||
sc->start_cmd_id = scan_send_start(&sr->start_cmd, scan_done, sc);
|
||||
|
||||
if (!sc->start_cmd_id) {
|
||||
if (sr->trigger)
|
||||
sr->trigger(-EIO, sr->userdata);
|
||||
|
||||
if (sr->destroy)
|
||||
sr->destroy(sr->userdata);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user