From 3df250cf6c6799fb7c0aad4840258c9912d3273e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 7 May 2019 10:34:35 +0200 Subject: cli: don't force interface name on add_and_activate The daemon is already responsible for pinning the connection to a particular device. In fact, it may choose to use a different means than an interface name, such as a MAC address or a gsm.device-id. Remove it from the client. --- clients/cli/devices.c | 1 - 1 file changed, 1 deletion(-) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 0a0c3159e3..1285972876 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -1897,7 +1897,6 @@ create_connect_connection_for_device (AddAndActivateInfo *info) nm_connection_add_setting (connection, NM_SETTING (s_con)); g_object_set (s_con, NM_SETTING_CONNECTION_ID, nm_device_get_iface (info->device), - NM_SETTING_CONNECTION_INTERFACE_NAME, nm_device_get_iface (info->device), NULL); nm_client_add_and_activate_connection_async (info->nmc->client, -- cgit v1.2.1