3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-19 11:09:25 +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:
Andrew Zaborowski 2017-02-03 12:19:07 +01:00 committed by Denis Kenzior
parent adfba7b2d2
commit 9f19a48433

View File

@ -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); sc->start_cmd_id = scan_send_start(&sr->start_cmd, scan_done, sc);
if (!sc->start_cmd_id) { if (!sc->start_cmd_id) {
if (sr->trigger)
sr->trigger(-EIO, sr->userdata);
if (sr->destroy) if (sr->destroy)
sr->destroy(sr->userdata); sr->destroy(sr->userdata);