diff options
author | Dan Winship <danw@gnome.org> | 2014-11-13 17:17:06 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-11-14 15:36:31 -0500 |
commit | d1faee92288831517f6f5f7baa057c790be3b022 (patch) | |
tree | 9b3a33b2cb636ef92036a87b16e079b9e4239bd7 /src/devices/bluetooth | |
parent | 529092f035680584e38f4fcfa8473876e9b7f86c (diff) | |
download | NetworkManager-d1faee92288831517f6f5f7baa057c790be3b022.tar.gz |
core: fix a spurious warning with non-kernel network devices
NMDevice was warning about not being able to set ifindex even on
devices that we know don't have an ifindex.
https://bugzilla.gnome.org/show_bug.cgi?id=739889
Diffstat (limited to 'src/devices/bluetooth')
-rw-r--r-- | src/devices/bluetooth/nm-device-bt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c index 0a1f591540..2cf2794da6 100644 --- a/src/devices/bluetooth/nm-device-bt.c +++ b/src/devices/bluetooth/nm-device-bt.c @@ -124,6 +124,12 @@ get_connection_bt_type (NMConnection *connection) return NM_BT_CAPABILITY_NONE; } +static guint32 +get_generic_capabilities (NMDevice *device) +{ + return NM_DEVICE_CAP_IS_NON_KERNEL; +} + static gboolean can_auto_connect (NMDevice *device, NMConnection *connection, @@ -1179,6 +1185,7 @@ nm_device_bt_class_init (NMDeviceBtClass *klass) object_class->dispose = dispose; object_class->finalize = finalize; + device_class->get_generic_capabilities = get_generic_capabilities; device_class->can_auto_connect = can_auto_connect; device_class->deactivate = deactivate; device_class->act_stage2_config = act_stage2_config; |