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

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to