nokia,icera: setup custom AT probing as in the generic Nokia plugin

This commit is contained in:
Aleksander Morgado
2012-10-22 14:03:43 +02:00
parent c900aa7c0b
commit 8e4d93c04e

View File

@@ -29,6 +29,16 @@ G_DEFINE_TYPE (MMPluginNokiaIcera, mm_plugin_nokia_icera, MM_TYPE_PLUGIN)
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 *
@@ -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));