Skip to content

Commit

Permalink
[toup] zephyr: Propagate the error from control interface
Browse files Browse the repository at this point in the history
In case of failure from control interface, check and propagate
the error to the caller.

Signed-off-by: Chaitanya Tata <[email protected]>
Signed-off-by: Jukka Rissanen <[email protected]>
  • Loading branch information
krish2718 authored and jukkar committed Apr 3, 2024
1 parent 7342d1b commit c5faf50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wpa_supplicant/wpa_cli_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print,
/* Remove the LF */
os_memcpy(resp, buf, len - 1);
resp[len - 1] = '\0';
if (strncmp(resp, "FAIL", 4) == 0)
return -3;
}

if (print) {
Expand Down

0 comments on commit c5faf50

Please sign in to comment.