mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
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:
parent
df511f74f7
commit
167936f47d
1 changed files with 6 additions and 2 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue