diff options
author | Dan Williams <dcbw@redhat.com> | 2011-05-04 15:11:37 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-05-04 15:11:37 -0500 |
commit | 00e00bf9e7ffd4b76adc3e30a6796e94da3ec1c9 (patch) | |
tree | a6ca3f0139b28d047d0c9277ffa4ec6bf193463d | |
parent | 1f86a85c1cf4d73571dd65f7029d503e0cce3315 (diff) |
longcheer: ensure the plugin on handles devices it's supposed to
Other devices from the same vendor (x220) need to be handled by
the x22x plugin, so Longcheer can't just rely on the vendor ID
match to know whether it should handle the modem.
-rw-r--r-- | plugins/mm-plugin-longcheer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mm-plugin-longcheer.c b/plugins/mm-plugin-longcheer.c index cbf4c1e5..f90a8439 100644 --- a/plugins/mm-plugin-longcheer.c +++ b/plugins/mm-plugin-longcheer.c @@ -87,6 +87,12 @@ supports_port (MMPluginBase *base, if (vendor != 0x1c9e && vendor != 0x1bbb) return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + /* Some TAMobile devices are different chipsets and should be handled + * by other plugins, so only handle LONGCHEER tagged devices here. + */ + if (g_udev_device_get_property_as_boolean (port, "ID_MM_LONGCHEER_TAGGED") == FALSE) + return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + if (mm_plugin_base_get_cached_port_capabilities (base, port, &cached)) { level = get_level_for_capabilities (cached); if (level) { |