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.
This commit is contained in:

committed by
Aleksander Morgado

parent
369e14f1d3
commit
63ef0990b6
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <gmodule.h>
|
||||
|
||||
#include <libmm-common.h>
|
||||
@@ -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);
|
||||
|
Reference in New Issue
Block a user