[PATCH] Let wpa_cli use LAST_ID argument for LIST_NETWORKS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From e10e5c8c6b21d1d67614c4ebc1a96cccdebe6bfc Mon Sep 17 00:00:00 2001
From: Victor Ananyev <vindex10@xxxxxxxxx>
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@xxxxxxxxx>
---
 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
From e10e5c8c6b21d1d67614c4ebc1a96cccdebe6bfc Mon Sep 17 00:00:00 2001
From: Victor Ananyev <vindex10@xxxxxxxxx>
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@xxxxxxxxx>
---
 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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux