From 00e00bf9e7ffd4b76adc3e30a6796e94da3ec1c9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 4 May 2011 15:11:37 -0500 Subject: 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. --- plugins/mm-plugin-longcheer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/mm-plugin-longcheer.c') 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) { -- cgit v1.2.3-70-g09d2