From 9c2d835e5c8d9768b20af63772be50a9f9f8f05f Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: Tue, 24 Aug 2021 23:25:49 +0000 Subject: [PATCH] libnm: allow addition of wireless connections to bonds in nm_utils_check_virtual_device_compatibility() https://gitlab.gnome.org/GNOME/network-manager-applet/-/issues/140 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/969 --- src/libnm-core-impl/nm-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libnm-core-impl/nm-utils.c b/src/libnm-core-impl/nm-utils.c index 04ae5f91b5..91aeacad3b 100644 --- a/src/libnm-core-impl/nm-utils.c +++ b/src/libnm-core-impl/nm-utils.c @@ -4603,8 +4603,9 @@ nm_utils_check_virtual_device_compatibility(GType virtual_type, GType other_type if (virtual_type == NM_TYPE_SETTING_BOND) { return (other_type == NM_TYPE_SETTING_INFINIBAND || other_type == NM_TYPE_SETTING_WIRED - || other_type == NM_TYPE_SETTING_BRIDGE || other_type == NM_TYPE_SETTING_BOND - || other_type == NM_TYPE_SETTING_TEAM || other_type == NM_TYPE_SETTING_VLAN); + || other_type == NM_TYPE_SETTING_WIRELESS || other_type == NM_TYPE_SETTING_BRIDGE + || other_type == NM_TYPE_SETTING_BOND || other_type == NM_TYPE_SETTING_TEAM + || other_type == NM_TYPE_SETTING_VLAN); } else if (virtual_type == NM_TYPE_SETTING_BRIDGE) { return (other_type == NM_TYPE_SETTING_WIRED || other_type == NM_TYPE_SETTING_BOND || other_type == NM_TYPE_SETTING_TEAM || other_type == NM_TYPE_SETTING_VLAN);