summaryrefslogtreecommitdiff
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorSergei Golubtsov <s.e.golubtsov@gmail.com>2021-01-07 23:40:16 +0300
committerDenis Kenzior <denkenz@gmail.com>2021-01-07 23:17:45 -0600
commitc8ed7162d5550c6d82fd604ecc47ca6cbfc91227 (patch)
tree356032a3cc58d10ef0f14fe420d95ad31ad68e9d /gatchat/gatppp.c
parent41967b92f333d6a17a51f1a44e91f7af7bc121fc (diff)
downloadofono-c8ed7162d5550c6d82fd604ecc47ca6cbfc91227.tar.gz
ppp: using RX ACCM = 0 by default
Some modems such as Quectel EC200T do not honor the default value for the Async-Control-Character-Map (ACCM) configuration option defined in RFC 1548 6.2 as 0xffffffff. This patch suggests to use RX ACCM = 0 for Ofono by default as pppd does for instance. This will reduce PPP data overhead as well.
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 141e2746..259e6d5c 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -806,6 +806,11 @@ void g_at_ppp_set_server_info(GAtPPP *ppp, const char *remote,
ipcp_set_server_info(ppp->ipcp, r, d1, d2);
}
+void g_at_ppp_set_accm(GAtPPP *ppp, guint32 accm)
+{
+ lcp_set_accm(ppp->lcp, accm);
+}
+
void g_at_ppp_set_acfc_enabled(GAtPPP *ppp, gboolean enabled)
{
lcp_set_acfc_enabled(ppp->lcp, enabled);