]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Let LAST_ID argument to be used for LIST_NETWORKS
authorVictor Ananyev <vindex10@gmail.com>
Tue, 17 Sep 2019 19:38:52 +0000 (21:38 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2019 21:56:02 +0000 (23:56 +0200)
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>
wpa_supplicant/wpa_cli.c

index a1b061514b5556202b08cc2c4ee1bf59f15e0ec4..5b849fd7c60f14ec832b9f709b12f7ec38139357 100644 (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,
                                     char *argv[])
 {
-       return wpa_ctrl_command(ctrl, "LIST_NETWORKS");
+       return wpa_cli_cmd(ctrl, "LIST_NETWORKS", 0, argc, argv);
 }