diff options
author | Martin Hundebøll <martin@geanix.com> | 2019-07-10 23:51:46 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-07-12 10:54:21 -0500 |
commit | 47f6e8c3ad8d860d311b2be0679d9752753db7e1 (patch) | |
tree | f684b95b8d62a5d01a4d03ffb21af1f4b1942942 /plugins | |
parent | 2f58421b6431c27fd02a98bf5201ca45d5734662 (diff) | |
download | ofono-47f6e8c3ad8d860d311b2be0679d9752753db7e1.tar.gz |
quectel: configure flow control when enabled
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/quectel.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |