aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorDaichi Ueura <daichi.ueura@gmail.com>2014-04-06 07:35:12 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-11 16:22:00 (GMT)
commit2150c33337310cbe933a68a1a28e86402212c81e (patch)
tree6abf19d8a8828412651de9a05032c3655f8a4a41 /wpa_supplicant/wpa_cli.c
parent83c4cb521782f5d8bf031de9aafdc29046e34642 (diff)
downloadhostap-2150c33337310cbe933a68a1a28e86402212c81e.zip
hostap-2150c33337310cbe933a68a1a28e86402212c81e.tar.gz
hostap-2150c33337310cbe933a68a1a28e86402212c81e.tar.bz2
wpa_cli: Fix wrong comparison in wpa_cli_cmd_interface
Signed-off-by: Daichi Ueura <daichi.ueura@gmail.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 28e186e..77c5295 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -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",