From 47f6e8c3ad8d860d311b2be0679d9752753db7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= Date: Wed, 10 Jul 2019 23:51:46 +0200 Subject: [PATCH] quectel: configure flow control when enabled --- plugins/quectel.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/quectel.c b/plugins/quectel.c index b657b534..0847402b 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -494,7 +494,13 @@ static int open_serial(struct ofono_modem *modem) * at which point the modem is ready. */ g_at_chat_set_wakeup_command(data->uart, "AT\r", 500, 10000); - g_at_chat_send(data->uart, "ATE0", none_prefix, ate_cb, modem, NULL); + + if (strcmp(rts_cts, "on") == 0) + g_at_chat_send(data->uart, "AT+IFC=2,2; E0", none_prefix, + ate_cb, modem, NULL); + else + g_at_chat_send(data->uart, "ATE0", none_prefix, ate_cb, modem, + NULL); return -EINPROGRESS; }