quectel: configure flow control when enabled

This commit is contained in:
Martin Hundebøll 2019-07-10 23:51:46 +02:00 committed by Denis Kenzior
parent 2f58421b64
commit 47f6e8c3ad
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}