aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-11-24 20:53:23 +0100
committerAleksander Morgado <aleksander@aleksander.es>2014-12-03 19:02:00 +0100
commit71a1b64b3b60527a15dea72d0cc9a2bb31adcf9f (patch)
treee2e78dff010f60002cfd0db0287d262e106493a4 /plugins
parentb51f701524778acde8ed33d3e4f1a2ac0f694f81 (diff)
huawei: expect 'modem' and 'pcui' in ^GETPORTMODE responses
Newer huawei modems, like the E3372, use the following ^GETPORTMODE response format: ^GETPORTMODE: TYPE: WCDMA: ,pcui:1,modem:2,ncm:3,mass:4,mass_two:5, This patch updates the parser that looks for the control TTY (pcui) and data TTY (modem). https://bugs.freedesktop.org/show_bug.cgi?id=86658
Diffstat (limited to 'plugins')
-rw-r--r--plugins/huawei/mm-plugin-huawei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/huawei/mm-plugin-huawei.c b/plugins/huawei/mm-plugin-huawei.c
index 30b18474..22c03de2 100644
--- a/plugins/huawei/mm-plugin-huawei.c
+++ b/plugins/huawei/mm-plugin-huawei.c
@@ -159,6 +159,10 @@ getportmode_ready (MMPortSerialAt *port,
cache_port_mode (device, response, "MDM:", TAG_HUAWEI_MODEM_PORT);
cache_port_mode (device, response, "NDIS:", TAG_HUAWEI_NDIS_PORT);
cache_port_mode (device, response, "DIAG:", TAG_HUAWEI_DIAG_PORT);
+ /* GETPORTMODE response format in newer devices... (e.g. E3372) */
+ cache_port_mode (device, response, "pcui:", TAG_HUAWEI_PCUI_PORT);
+ cache_port_mode (device, response, "modem:", TAG_HUAWEI_MODEM_PORT);
+
g_object_set_data (G_OBJECT (device), TAG_GETPORTMODE_SUPPORTED, GUINT_TO_POINTER (TRUE));
/* Mark port as being AT already */