wpa_cli: Let LAST_ID argument to be used for LIST_NETWORKS

This allows starting point of the network list to be specified so that
the potentially long response can be fragmented into multiple fetch
operations.

Signed-off-by: Victor Ananyev <vindex10@gmail.com>
This commit is contained in:
Victor Ananyev 2019-09-17 21:38:52 +02:00 committed by Jouni Malinen
parent 4e9bcdebf3
commit a3b59fa111

View file

@ -1302,7 +1302,7 @@ static int wpa_cli_cmd_log_level(struct wpa_ctrl *ctrl, int argc, char *argv[])
static int wpa_cli_cmd_list_networks(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_list_networks(struct wpa_ctrl *ctrl, int argc,
char *argv[]) char *argv[])
{ {
return wpa_ctrl_command(ctrl, "LIST_NETWORKS"); return wpa_cli_cmd(ctrl, "LIST_NETWORKS", 0, argc, argv);
} }