[PATCH] Let wpa_cli use LAST_ID argument for LIST_NETWORKS

Victor Ananyev vindex10 at gmail.com
Wed Sep 18 15:49:28 PDT 2019


>From e10e5c8c6b21d1d67614c4ebc1a96cccdebe6bfc Mon Sep 17 00:00:00 2001
From: Victor Ananyev <vindex10 at gmail.com>
Date: Tue, 17 Sep 2019 21:38:52 +0200
Subject: [PATCH] Let wpa_cli use LAST_ID argument for LIST_NETWORKS

This only allows to get full list of networks through WPA_Cli

Signed-off-by: Victor Ananyev <vindex10 at gmail.com>
---
 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 fa24121ca..ef2d249e9 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -1299,7 +1299,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);
 }


-- 
2.21.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Let-wpa_cli-use-LAST_ID-argument-for-LIST_NETWORKS.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20190919/06c7ca24/attachment.bin>


More information about the Hostap mailing list