wpa_cli: Fix wrong comparison in wpa_cli_cmd_interface

Signed-off-by: Daichi Ueura <daichi.ueura@gmail.com>
This commit is contained in:
Daichi Ueura 2014-04-06 16:35:12 +09:00 committed by Jouni Malinen
parent 83c4cb5217
commit 2150c33337

View file

@ -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",