hso: always mark netdev as supported

This commit is contained in:
Dan Williams
2009-06-29 10:09:26 -04:00
parent fe7acaf457
commit 8ae41eeee3
+8 -1
View File
@@ -63,7 +63,7 @@ supports_port (MMPluginBase *base,
{
GUdevDevice *port;
guint32 cached = 0, level;
const char *driver;
const char *driver, *subsys;
port = mm_plugin_base_supports_task_get_port (task);
@@ -71,6 +71,13 @@ supports_port (MMPluginBase *base,
if (!driver || strcmp (driver, "hso"))
return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED;
subsys = g_udev_device_get_subsystem (port);
g_assert (subsys);
if (!strcmp (subsys, "net")) {
mm_plugin_base_supports_task_complete (task, 10);
return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS;
}
if (mm_plugin_base_get_cached_port_capabilities (base, port, &cached)) {
level = get_level_for_capabilities (cached);
if (level) {