mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-27 02:32:52 +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);
|
||||
if (sc->start_cmd_id) {
|
||||
l_genl_msg_ref(cmd);
|
||||
|
||||
sc->triggered = false;
|
||||
sc->current_sr = sr;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user