aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-08-23 21:14:38 -0500
committerDan Williams <dcbw@redhat.com>2012-08-23 21:14:38 -0500
commit082f683b4ea75fd27ff0866d1ea0c2c3982b733b (patch)
treea742cb808a7d7cbd6222aa9e25a339030fe3e8ba
parent8f74fc2bbd34965f7a77cfc136e809769fc38999 (diff)
sierra: fix detection of APP1 port
The APP1 port (which has a limited AT parser) doesn't prefix its replies with <CR><LF> like nice modems do, and that means it runs afoul of the echo removal bits of the AT serial port code. We need to parse the whole string even though it's not prefixed properly to find the APP1 string in the response.
-rw-r--r--plugins/mm-plugin-sierra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-plugin-sierra.c b/plugins/mm-plugin-sierra.c
index 85cd0cdb..65555255 100644
--- a/plugins/mm-plugin-sierra.c
+++ b/plugins/mm-plugin-sierra.c
@@ -134,7 +134,7 @@ supports_port (MMPluginBase *base,
}
/* Otherwise kick off a probe */
- if (mm_plugin_base_probe_port (base, task, 100000, NULL))
+ if (mm_plugin_base_probe_port_leave_echo (base, task, 100000, NULL))
return MM_PLUGIN_SUPPORTS_PORT_IN_PROGRESS;
return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED;