From 085bc0876c35e0d82ea65476df55f6e99a012366 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 21 Apr 2014 14:39:55 -0500 Subject: [PATCH] platform: better detection of OLPC Mesh interfaces Instead of just looking at the udev tags, also look for sysfs entries that the libertas driver uses when mesh is enabled. --- src/platform/nm-linux-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index ee62e49890..95f9854805 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -564,8 +564,8 @@ link_type_from_udev (NMPlatform *platform, int ifindex, const char *ifname, int if (!udev_device) return_type (NM_LINK_TYPE_UNKNOWN, "unknown"); - prop = g_udev_device_get_property (udev_device, "ID_NM_OLPC_MESH"); - if (prop) + if ( g_udev_device_get_property (udev_device, "ID_NM_OLPC_MESH") + || g_udev_device_get_sysfs_attr (udev_device, "anycast_mask")) return_type (NM_LINK_TYPE_OLPC_MESH, "olpc-mesh"); prop = g_udev_device_get_property (udev_device, "DEVTYPE");