summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2019-09-02 23:17:59 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-09-02 16:25:43 -0500
commit62e8e3c1e20d6f1b0b3e64b68fbf8a0986c64aa4 (patch)
tree056aa71f645ac7074dc779dc7f847cb8db027386 /plugins
parent06de0c3067ace844a0ec3b96985cada6c8bbcba4 (diff)
downloadofono-62e8e3c1e20d6f1b0b3e64b68fbf8a0986c64aa4.tar.gz
quectel: swap cmuxed ports
According to the manual, when using CMUX on the UC15, it outputs unsolicited indications on port 2 (i.e. /dev/gsmtty2), so the quectel plugin must use this when registering for such.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/quectel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/quectel.c b/plugins/quectel.c
index ccfc6c5f..dea23bdd 100644
--- a/plugins/quectel.c
+++ b/plugins/quectel.c
@@ -849,8 +849,8 @@ static void cmux_cb(gboolean ok, GAtResult *result, gpointer user_data)
* the kernel does not yet support mapping the underlying serial device
* to its virtual gsm ttys, so hard-code gsmtty1 gsmtty2 for now
*/
- ofono_modem_set_string(modem, "Aux", "/dev/gsmtty1");
- ofono_modem_set_string(modem, "Modem", "/dev/gsmtty2");
+ ofono_modem_set_string(modem, "Modem", "/dev/gsmtty1");
+ ofono_modem_set_string(modem, "Aux", "/dev/gsmtty2");
/* wait for gsmtty devices to appear */
if (!l_timeout_create_ms(100, mux_ready_cb, modem, NULL)) {