wpa_cli: Fix wrong comparison in wpa_cli_cmd_interface
Signed-off-by: Daichi Ueura <daichi.ueura@gmail.com>
This commit is contained in:
parent
83c4cb5217
commit
2150c33337
1 changed files with 1 additions and 1 deletions
|
@ -1552,7 +1552,7 @@ static int wpa_cli_cmd_interface(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
|||
os_free(ctrl_ifname);
|
||||
ctrl_ifname = os_strdup(argv[0]);
|
||||
|
||||
if (wpa_cli_open_connection(ctrl_ifname, 1)) {
|
||||
if (wpa_cli_open_connection(ctrl_ifname, 1) == 0) {
|
||||
printf("Connected to interface '%s.\n", ctrl_ifname);
|
||||
} else {
|
||||
printf("Could not connect to interface '%s' - re-trying\n",
|
||||
|
|
Loading…
Reference in a new issue