iwd: Don't add connection.interface-name by default

This setting can't be handled IWD (e.g. during autoactivations performed
by IWD) and although for manual activations NM will probably check it,
there's no reason for the IWD backend to restrict new profiles to one
interface plus when running IWD the udev permanent interface naming is
likely to be broken.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/886
(cherry picked from commit 35a1d89a96)
This commit is contained in:
Andrew Zaborowski 2021-06-09 19:14:41 +02:00 committed by Thomas Haller
parent a90a7b2d5f
commit a93653336b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1045,16 +1045,15 @@ complete_connection(NMDevice * device,
}
ssid_utf8 = iwd_ssid_to_str(ssid);
nm_utils_complete_generic(
nm_device_get_platform(device),
connection,
NM_SETTING_WIRELESS_SETTING_NAME,
existing_connections,
ssid_utf8,
ssid_utf8,
NULL,
nm_setting_wireless_get_mac_address(s_wifi) ? NULL : nm_device_get_iface(device),
TRUE);
nm_utils_complete_generic(nm_device_get_platform(device),
connection,
NM_SETTING_WIRELESS_SETTING_NAME,
existing_connections,
ssid_utf8,
ssid_utf8,
NULL,
NULL,
TRUE);
if (hidden)
g_object_set(s_wifi, NM_SETTING_WIRELESS_HIDDEN, TRUE, NULL);