From be807819b053c67f2d704e1a8e562dcfa230e862 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 17 May 2013 10:58:38 -0500 Subject: core: clean up and simplify device capabilities handling This is really, really old 2007-era code. Any NMDevice that gets created is already supported, so there's no reason to have every device set NM_DEVICE_CAP_NM_SUPPORTED. For those subclasses that only set that capability, we can remove the subclass method entirely. Next, it turns out that the "type capabilities" code wasn't used anywhere, so remove that too. Lastly, "cipsec" interfaces haven't been used on linux in about 5 years (they were created by the Cisco binary-only IPSec kernel module for Cisco VPNs long before vpnc and openswan came around) so we can remove that code too. --- src/devices/nm-device-infiniband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/nm-device-infiniband.c') diff --git a/src/devices/nm-device-infiniband.c b/src/devices/nm-device-infiniband.c index ae01e30228..853943aa92 100644 --- a/src/devices/nm-device-infiniband.c +++ b/src/devices/nm-device-infiniband.c @@ -119,7 +119,7 @@ get_hw_address_length (NMDevice *device) static guint32 get_generic_capabilities (NMDevice *dev) { - return NM_DEVICE_CAP_CARRIER_DETECT | NM_DEVICE_CAP_NM_SUPPORTED; + return NM_DEVICE_CAP_CARRIER_DETECT; } static NMActStageReturn -- cgit v1.2.1