core: enable Easytether Android USB interfaces

These interfaces are a proprietary USB-ethernet-style virtual interface
that of course does not have proper driver links.  Given that it's so
easy to support, just do it.
This commit is contained in:
Torsten Spindler
2011-04-14 13:35:57 -05:00
committed by Dan Williams
parent df511f74f7
commit 167936f47d

View File

@@ -385,8 +385,12 @@ device_creator (NMUdevManager *manager,
} }
if (!driver) { if (!driver) {
nm_log_warn (LOGD_HW, "%s: couldn't determine device driver; ignoring...", path); if (g_str_has_prefix (ifname), "easytether") {
goto out; driver = "easytether";
} else {
nm_log_warn (LOGD_HW, "%s: couldn't determine device driver; ignoring...", path);
goto out;
}
} }
ifindex = g_udev_device_get_sysfs_attr_as_int (udev_device, "ifindex"); ifindex = g_udev_device_get_sysfs_attr_as_int (udev_device, "ifindex");