wpa_cli: Don't select interface when using global socket

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@gmail.com>
This commit is contained in:
Janusz Dziedzic 2024-03-09 20:42:28 +01:00 committed by Jouni Malinen
parent 2342d95821
commit ec4b755b06

View file

@ -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 && !global)
ctrl_ifname = wpa_cli_get_default_ifname();
if (reconnect && action_file && ctrl_ifname) {