aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorDaichi Ueura <daichi.ueura@gmail.com>2015-07-13 15:31:22 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-02 18:37:10 (GMT)
commit2665c26f91d0c19aa5745802635cc357abd79d67 (patch)
tree045d9856c865468403135b14f86711d527ba0185 /wpa_supplicant/wpa_cli.c
parent884c649e261357289683430daec99617aa9e04a0 (diff)
downloadhostap-2665c26f91d0c19aa5745802635cc357abd79d67.zip
hostap-2665c26f91d0c19aa5745802635cc357abd79d67.tar.gz
hostap-2665c26f91d0c19aa5745802635cc357abd79d67.tar.bz2
Android: Handle STATUS-NO_EVENTS command in wpa_cli
NO_EVENTS parameter was added to STATUS command by commit a6ab82d7b409cd95c4e64452c2a672d4ce4c3c99 ('Android: Add NO_EVENTS parameter to status command'). This patch adds handling of the new parameter in wpa_cli so that "status no_events" can be used to specify this parameter. Signed-off-by: Daichi Ueura <daichi.ueura@sonymobile.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 042ba76..c7470cb 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -502,6 +502,10 @@ static int wpa_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[])
return wpa_ctrl_command(ctrl, "STATUS-WPS");
if (argc > 0 && os_strcmp(argv[0], "driver") == 0)
return wpa_ctrl_command(ctrl, "STATUS-DRIVER");
+#ifdef ANDROID
+ if (argc > 0 && os_strcmp(argv[0], "no_events") == 0)
+ return wpa_ctrl_command(ctrl, "STATUS-NO_EVENTS");
+#endif /* ANDROID */
return wpa_ctrl_command(ctrl, "STATUS");
}