summaryrefslogtreecommitdiff
path: root/plugins/nokia
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-22 14:03:43 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-22 14:03:43 +0200
commit8e4d93c04eed7eefb25da22bfa071f6650b4203c (patch)
tree1ca97bc2beea11d16d070d4d2d587b6567d1f4bf /plugins/nokia
parentc900aa7c0b41be04082f1bdfe6dc7c28e1d41f18 (diff)
nokia,icera: setup custom AT probing as in the generic Nokia plugin
Diffstat (limited to 'plugins/nokia')
-rw-r--r--plugins/nokia/mm-plugin-nokia-icera.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/nokia/mm-plugin-nokia-icera.c b/plugins/nokia/mm-plugin-nokia-icera.c
index 3840bbac..d0b25f61 100644
--- a/plugins/nokia/mm-plugin-nokia-icera.c
+++ b/plugins/nokia/mm-plugin-nokia-icera.c
@@ -30,6 +30,16 @@ int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION;
int mm_plugin_minor_version = MM_PLUGIN_MINOR_VERSION;
/*****************************************************************************/
+/* Custom commands for AT probing */
+
+static const MMPortProbeAtCommand custom_at_probe[] = {
+ { "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
+ { "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
+ { "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
+ { NULL }
+};
+
+/*****************************************************************************/
static MMBaseModem *
create_modem (MMPlugin *self,
@@ -87,6 +97,7 @@ mm_plugin_create (void)
MM_PLUGIN_NAME, "Nokia (Icera)",
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
+ MM_PLUGIN_CUSTOM_AT_PROBE, custom_at_probe,
MM_PLUGIN_ALLOWED_AT, TRUE,
MM_PLUGIN_ALLOWED_ICERA, TRUE, /* Only Nokia/Icera modems */
NULL));