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.
This commit is contained in:
Martin Hundebøll 2019-09-02 23:17:59 +02:00 committed by Denis Kenzior
parent 06de0c3067
commit 62e8e3c1e2
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {