diff options
author | Tambet Ingo <tambet@gmail.com> | 2009-01-13 11:29:44 +0200 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2009-01-13 11:29:44 +0200 |
commit | 423637272a9a021742c070930f3b3a2c96c31695 (patch) | |
tree | d5fb5edb0279c67a6da1735ba6f3e1c98d02a954 /plugins/mm-plugin-option.c | |
parent | 6018ff81babf1296f13fa0f45a60faae4fd7e0d5 (diff) |
Fix the "Option" plugin to not steal modems from "HSO" plugin.
Diffstat (limited to 'plugins/mm-plugin-option.c')
-rw-r--r-- | plugins/mm-plugin-option.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/mm-plugin-option.c b/plugins/mm-plugin-option.c index d8dc431d..1a231f40 100644 --- a/plugins/mm-plugin-option.c +++ b/plugins/mm-plugin-option.c @@ -77,8 +77,14 @@ supports_udi (MMPlugin *plugin, LibHalContext *hal_ctx, const char *udi) int vendor; vendor = libhal_device_get_property_int (hal_ctx, parent_udi, "usb.vendor_id", NULL); - if (vendor == 0x0af0) - supported = TRUE; + if (vendor == 0x0af0) { + char *driver; + + driver = libhal_device_get_property_string (hal_ctx, parent_udi, "info.linux.driver", NULL); + if (driver && !strcmp (driver, "option")) + supported = TRUE; + libhal_free_string (driver); + } libhal_free_string (parent_udi); } |