From a3b59fa1118a4ff75710c536e294b49c423ffe28 Mon Sep 17 00:00:00 2001 From: Victor Ananyev Date: Tue, 17 Sep 2019 21:38:52 +0200 Subject: [PATCH] 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 --- wpa_supplicant/wpa_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index a1b061514..5b849fd7c 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -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, char *argv[]) { - return wpa_ctrl_command(ctrl, "LIST_NETWORKS"); + return wpa_cli_cmd(ctrl, "LIST_NETWORKS", 0, argc, argv); }