aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-06-29 10:09:26 -0400
committerDan Williams <dcbw@redhat.com>2009-06-29 10:09:26 -0400
commit8ae41eeee3cdafaebc9eca7f5e8f0d8415a5a76d (patch)
tree564c2d370feb5853d69c54eff40cfe956df2b81b
parentfe7acaf45750d4f801acbfee98048453c10c7308 (diff)
hso: always mark netdev as supported
-rw-r--r--plugins/mm-plugin-hso.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/mm-plugin-hso.c b/plugins/mm-plugin-hso.c
index ca6bfae0..b038b5ef 100644
--- a/plugins/mm-plugin-hso.c
+++ b/plugins/mm-plugin-hso.c
@@ -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) {