[PATCH 2/2] ppp: check for NO CARRIER
Kristen Carlson Accardi
kristen at linux.intel.com
Mon May 17 12:43:44 PDT 2010
if hdlc detects NO CARRIER, treat it the same as an IO disconnect.
---
gatchat/gatppp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 82d1eca..bc5c9bf 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -472,6 +472,7 @@ static GAtPPP *ppp_init_common(GAtHDLC *hdlc)
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);
+ g_at_hdlc_set_no_carrier(ppp->hdlc, io_disconnect, ppp);
return ppp;
}
--
1.6.6.1
More information about the ofono
mailing list