From a2ba5c5e99b4200281fd1a57177676acd26a2cad Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 10 May 2011 11:42:04 +0200 Subject: [PATCH] cinterion: enable reprobing on ports without cached capabilities --- plugins/mm-plugin-cinterion.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/mm-plugin-cinterion.c b/plugins/mm-plugin-cinterion.c index 60e784b0..9992350f 100644 --- a/plugins/mm-plugin-cinterion.c +++ b/plugins/mm-plugin-cinterion.c @@ -126,8 +126,12 @@ supports_port (MMPluginBase *base, /* First thing to check in this plugin is if we got capabilities already. * This is because we have a later check of the probed vendor, which is - * taken also during port probing. */ - if (!mm_plugin_base_get_cached_port_capabilities (base, port, &cached)) { + * taken also during port probing. + * Note that we also relaunch a port probe if we got a cached value but no + * capabilities set (used when trying to detect RS232 modems during + * re-scans). */ + if (!mm_plugin_base_get_cached_port_capabilities (base, port, &cached) || + !cached) { /* Kick off a probe */ if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS;