]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: Handle STATUS-NO_EVENTS command in wpa_cli
authorDaichi Ueura <daichi.ueura@gmail.com>
Mon, 13 Jul 2015 15:31:22 +0000 (00:31 +0900)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 18:37:10 +0000 (21:37 +0300)
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>
wpa_supplicant/wpa_cli.c

index 042ba76bb45960b786ee1d16603d3c359476a769..c7470cb53163141afb9ccca11b06482f73b5b440 100644 (file)
@@ -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");
 }