From 63ef0990b65a46b56707e6f28534e0e01bc4e22c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 28 Aug 2012 21:33:44 -0500 Subject: sierra: allow users to help debug APP1 PPP capability Most Sierra PPP-based devices are supposed to allow PPP on the APP1 port, which has a dumb AT parser, leaving the main port (with the intelligent AT parser) free for status and signal strength. But out of all the devices I've tested it with (8775, 8781, AC881, and C885), only the C885 actually works. The rest (including three different firmware versions for the 8775) either crash or disconnect shortly after PPP starts. To help figure out which devices actually support this, when running MM in debug mode, users can set the MM_SIERRA_APP1_PPP_OK environment variable and assume the APP1 port allows PPP. This is only for debugging purposes. --- plugins/sierra/mm-plugin-sierra.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') diff --git a/plugins/sierra/mm-plugin-sierra.c b/plugins/sierra/mm-plugin-sierra.c index a258a4eb..122d2499 100644 --- a/plugins/sierra/mm-plugin-sierra.c +++ b/plugins/sierra/mm-plugin-sierra.c @@ -16,6 +16,7 @@ */ #include +#include #include #include @@ -97,6 +98,12 @@ gcap_ready (MMAtSerialPort *port, */ if (strstr (response->str, "C885")) g_object_set_data (G_OBJECT (ctx->probe), TAG_SIERRA_APP_PPP_OK, GUINT_TO_POINTER (TRUE)); + + /* For debugging: let users figure out if their device supports it or not */ + if (getenv ("MM_SIERRA_APP1_PPP_OK")) { + mm_dbg ("Sierra: APP1 PPP OK '%s'", response->str); + g_object_set_data (G_OBJECT (ctx->probe), TAG_SIERRA_APP_PPP_OK, GUINT_TO_POINTER (TRUE)); + } } g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE); -- cgit v1.2.3-70-g09d2