From 62e8e3c1e20d6f1b0b3e64b68fbf8a0986c64aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= Date: Mon, 2 Sep 2019 23:17:59 +0200 Subject: [PATCH] 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. --- plugins/quectel.c | 4 ++-- 1 file 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)) {