Android: Handle STATUS-NO_EVENTS command in wpa_cli
NO_EVENTS parameter was added to STATUS command by commit
a6ab82d7b4
('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>
This commit is contained in:
parent
884c649e26
commit
2665c26f91
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
return wpa_ctrl_command(ctrl, "STATUS-WPS");
|
||||||
if (argc > 0 && os_strcmp(argv[0], "driver") == 0)
|
if (argc > 0 && os_strcmp(argv[0], "driver") == 0)
|
||||||
return wpa_ctrl_command(ctrl, "STATUS-DRIVER");
|
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");
|
return wpa_ctrl_command(ctrl, "STATUS");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue