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:
parent
2342d95821
commit
ec4b755b06
1 changed files with 1 additions and 1 deletions
|
@ -5129,7 +5129,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
eloop_register_signal_terminate(wpa_cli_terminate, NULL);
|
eloop_register_signal_terminate(wpa_cli_terminate, NULL);
|
||||||
|
|
||||||
if (ctrl_ifname == NULL)
|
if (!ctrl_ifname && !global)
|
||||||
ctrl_ifname = wpa_cli_get_default_ifname();
|
ctrl_ifname = wpa_cli_get_default_ifname();
|
||||||
|
|
||||||
if (reconnect && action_file && ctrl_ifname) {
|
if (reconnect && action_file && ctrl_ifname) {
|
||||||
|
|
Loading…
Reference in a new issue