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:

committed by
Dan Williams

parent
df511f74f7
commit
167936f47d
@@ -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");
|
||||||
|
Reference in New Issue
Block a user