diff options
author | Sergei Golubtsov <s.e.golubtsov@gmail.com> | 2021-01-07 23:40:16 +0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2021-01-07 23:17:45 -0600 |
commit | c8ed7162d5550c6d82fd604ecc47ca6cbfc91227 (patch) | |
tree | 356032a3cc58d10ef0f14fe420d95ad31ad68e9d /gatchat/ppp.h | |
parent | 41967b92f333d6a17a51f1a44e91f7af7bc121fc (diff) | |
download | ofono-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/ppp.h')
-rw-r--r-- | gatchat/ppp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gatchat/ppp.h b/gatchat/ppp.h index ac1a7ef2..6c02b053 100644 --- a/gatchat/ppp.h +++ b/gatchat/ppp.h @@ -90,6 +90,7 @@ static inline void __put_unaligned_short(void *p, guint16 val) struct pppcp_data *lcp_new(GAtPPP *ppp, gboolean dormant); void lcp_free(struct pppcp_data *lcp); void lcp_protocol_reject(struct pppcp_data *lcp, guint8 *packet, gsize len); +void lcp_set_accm(struct pppcp_data *pppcp, guint32 accm); void lcp_set_acfc_enabled(struct pppcp_data *pppcp, gboolean enabled); void lcp_set_pfc_enabled(struct pppcp_data *pppcp, gboolean enabled); |