mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-18 09:10:38 +01:00
scan: Add ref to cmd to make it reusable on failure
This commit is contained in:
parent
917815e99a
commit
45e5c42726
@ -454,8 +454,11 @@ static int scan_request_send_next(struct scan_context *sc,
|
|||||||
|
|
||||||
sc->start_cmd_id = scan_send_start(&cmd, scan_request_triggered, sc);
|
sc->start_cmd_id = scan_send_start(&cmd, scan_request_triggered, sc);
|
||||||
if (sc->start_cmd_id) {
|
if (sc->start_cmd_id) {
|
||||||
|
l_genl_msg_ref(cmd);
|
||||||
|
|
||||||
sc->triggered = false;
|
sc->triggered = false;
|
||||||
sc->current_sr = sr;
|
sc->current_sr = sr;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user