aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-plugin-mbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mm-plugin-mbm.c')
-rw-r--r--plugins/mm-plugin-mbm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/mm-plugin-mbm.c b/plugins/mm-plugin-mbm.c
index d770ad4d..20ee99e9 100644
--- a/plugins/mm-plugin-mbm.c
+++ b/plugins/mm-plugin-mbm.c
@@ -65,7 +65,6 @@ supports_port (MMPluginBase *base,
GUdevClient *client;
const char *sys[] = { "tty", "net", NULL };
GUdevDevice *port, *physdev;
- guint32 cached = 0, level;
const char *driver, *subsys, *physdev_path;
gboolean is_mbm;
@@ -106,8 +105,12 @@ supports_port (MMPluginBase *base,
return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS;
}
- if (mm_plugin_base_get_cached_port_capabilities (base, port, &cached)) {
- level = get_level_for_capabilities (cached);
+ /* Check if a previous probing was already launched in this port */
+ if (mm_plugin_base_supports_task_propagate_cached (task)) {
+ guint32 level;
+
+ /* A previous probing was already done, use its results */
+ level = get_level_for_capabilities (mm_plugin_base_supports_task_get_probed_capabilities (task));
if (level) {
mm_plugin_base_supports_task_complete (task, level);
return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS;