[PATCH 7/7] wpa_cli: don't select iface when global
Janusz Dziedzic
janusz.dziedzic at gmail.com
Sat Mar 9 11:42:28 PST 2024
In case we run command like:
wpa_cli -g <global_ctrl_path> command
don't print
"Selected interface " message.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic 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 b1334e2e6..54d6505b4 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -5129,7 +5129,7 @@ int main(int argc, char *argv[])
eloop_register_signal_terminate(wpa_cli_terminate, NULL);
- if (ctrl_ifname == NULL)
+ if (ctrl_ifname == NULL && !global)
ctrl_ifname = wpa_cli_get_default_ifname();
if (reconnect && action_file && ctrl_ifname) {
--
2.25.1
More information about the Hostap
mailing list