diff options
-rw-r--r-- | plugins/mm-plugin-anydata.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-generic.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-gobi.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-hso.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-huawei.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-linktop.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-longcheer.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-mbm.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-moto-c.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-nokia.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-novatel.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-option.c | 2 | ||||
-rwxr-xr-x | plugins/mm-plugin-samsung.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-sierra.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-simtech.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-x22x.c | 2 | ||||
-rw-r--r-- | plugins/mm-plugin-zte.c | 2 | ||||
-rw-r--r-- | src/mm-plugin-base.c | 3 | ||||
-rw-r--r-- | src/mm-plugin-base.h | 1 |
19 files changed, 20 insertions, 18 deletions
diff --git a/plugins/mm-plugin-anydata.c b/plugins/mm-plugin-anydata.c index 76df6734..d4c7e6df 100644 --- a/plugins/mm-plugin-anydata.c +++ b/plugins/mm-plugin-anydata.c @@ -94,7 +94,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-generic.c b/plugins/mm-plugin-generic.c index a27704b4..89912c2b 100644 --- a/plugins/mm-plugin-generic.c +++ b/plugins/mm-plugin-generic.c @@ -97,7 +97,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-gobi.c b/plugins/mm-plugin-gobi.c index 36771d12..06f55852 100644 --- a/plugins/mm-plugin-gobi.c +++ b/plugins/mm-plugin-gobi.c @@ -90,7 +90,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-hso.c b/plugins/mm-plugin-hso.c index 7b719322..a0958029 100644 --- a/plugins/mm-plugin-hso.c +++ b/plugins/mm-plugin-hso.c @@ -88,7 +88,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 0, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-huawei.c b/plugins/mm-plugin-huawei.c index f1590ca3..48697bbd 100644 --- a/plugins/mm-plugin-huawei.c +++ b/plugins/mm-plugin-huawei.c @@ -214,7 +214,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; } else { HuaweiSupportsInfo *info; diff --git a/plugins/mm-plugin-linktop.c b/plugins/mm-plugin-linktop.c index 411f9cc4..8d2e199a 100644 --- a/plugins/mm-plugin-linktop.c +++ b/plugins/mm-plugin-linktop.c @@ -85,7 +85,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-longcheer.c b/plugins/mm-plugin-longcheer.c index e63ff4e9..cbf4c1e5 100644 --- a/plugins/mm-plugin-longcheer.c +++ b/plugins/mm-plugin-longcheer.c @@ -97,7 +97,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-mbm.c b/plugins/mm-plugin-mbm.c index 6684ff9a..d770ad4d 100644 --- a/plugins/mm-plugin-mbm.c +++ b/plugins/mm-plugin-mbm.c @@ -116,7 +116,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 0, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-moto-c.c b/plugins/mm-plugin-moto-c.c index 21b737e2..f308b9de 100644 --- a/plugins/mm-plugin-moto-c.c +++ b/plugins/mm-plugin-moto-c.c @@ -90,7 +90,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-nokia.c b/plugins/mm-plugin-nokia.c index 938f8c57..28e9022b 100644 --- a/plugins/mm-plugin-nokia.c +++ b/plugins/mm-plugin-nokia.c @@ -93,7 +93,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-novatel.c b/plugins/mm-plugin-novatel.c index 53844566..d960addf 100644 --- a/plugins/mm-plugin-novatel.c +++ b/plugins/mm-plugin-novatel.c @@ -99,7 +99,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-option.c b/plugins/mm-plugin-option.c index ab2bd3d5..a819b4ec 100644 --- a/plugins/mm-plugin-option.c +++ b/plugins/mm-plugin-option.c @@ -89,7 +89,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 0, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-samsung.c b/plugins/mm-plugin-samsung.c index 73292bf8..eb5e0711 100755 --- a/plugins/mm-plugin-samsung.c +++ b/plugins/mm-plugin-samsung.c @@ -90,7 +90,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 0, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-sierra.c b/plugins/mm-plugin-sierra.c index b7367ab4..408074b7 100644 --- a/plugins/mm-plugin-sierra.c +++ b/plugins/mm-plugin-sierra.c @@ -122,7 +122,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-simtech.c b/plugins/mm-plugin-simtech.c index 611d2d20..7e2e6346 100644 --- a/plugins/mm-plugin-simtech.c +++ b/plugins/mm-plugin-simtech.c @@ -97,7 +97,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-x22x.c b/plugins/mm-plugin-x22x.c index 5a8253fe..f99b9d62 100644 --- a/plugins/mm-plugin-x22x.c +++ b/plugins/mm-plugin-x22x.c @@ -98,7 +98,7 @@ supports_port (MMPluginBase *base, } /* Otherwise kick off a probe */ - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/plugins/mm-plugin-zte.c b/plugins/mm-plugin-zte.c index edc6dd4c..6bffa150 100644 --- a/plugins/mm-plugin-zte.c +++ b/plugins/mm-plugin-zte.c @@ -115,7 +115,7 @@ supports_port (MMPluginBase *base, */ mm_plugin_base_supports_task_set_custom_init_command (task, "ATE0+CPMS?", 3, 4, FALSE, NULL, NULL); - if (mm_plugin_base_probe_port (base, task, NULL)) + if (mm_plugin_base_probe_port (base, task, 100000, NULL)) return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS; return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index d027f437..88dd5405 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -845,6 +845,7 @@ try_open (gpointer user_data) gboolean mm_plugin_base_probe_port (MMPluginBase *self, MMPluginBaseSupportsTask *task, + guint64 send_delay_us, GError **error) { MMPluginBaseSupportsTaskPrivate *task_priv = MM_PLUGIN_BASE_SUPPORTS_TASK_GET_PRIVATE (task); @@ -869,7 +870,7 @@ mm_plugin_base_probe_port (MMPluginBase *self, } g_object_set (serial, - MM_SERIAL_PORT_SEND_DELAY, (guint64) 100000, + MM_SERIAL_PORT_SEND_DELAY, send_delay_us, MM_PORT_CARRIER_DETECT, FALSE, NULL); diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h index fa67c0a6..9633e962 100644 --- a/src/mm-plugin-base.h +++ b/src/mm-plugin-base.h @@ -138,6 +138,7 @@ gboolean mm_plugin_base_get_device_ids (MMPluginBase *self, gboolean mm_plugin_base_probe_port (MMPluginBase *self, MMPluginBaseSupportsTask *task, + guint64 send_delay_us, GError **error); /* Returns TRUE if the port was previously probed, FALSE if not */ |