mirror of git://git.sysmocom.de/ofono
gatppp: Try to detect no carrier conditions
This commit is contained in:
parent
ea56a71067
commit
6f8675d7fa
|
@ -551,6 +551,7 @@ static GAtPPP *ppp_init_common(GAtHDLC *hdlc, gboolean is_server, guint32 ip)
|
|||
/* initialize IPCP state */
|
||||
ppp->ipcp = ipcp_new(ppp, is_server, ip);
|
||||
|
||||
g_at_hdlc_set_no_carrier_detect(ppp->hdlc, TRUE);
|
||||
g_at_hdlc_set_receive(ppp->hdlc, ppp_receive, ppp);
|
||||
g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
|
||||
io_disconnect, ppp);
|
||||
|
|
Loading…
Reference in New Issue