[PATCH 09/11] gsmdial: Unref ppp when we get disconnected
Zhenhua Zhang
zhenhua.zhang at intel.com
Fri Jun 11 22:50:48 PDT 2010
---
gatchat/gsmdial.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 29e1d22..59f1a5c 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -265,7 +265,12 @@ static void ppp_connect(const char *iface, const char *local, const char *peer,
static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data)
{
char buf[64];
+
g_print("PPP Link down: %d\n", reason);
+
+ g_at_ppp_unref(ppp);
+ ppp = NULL;
+
g_at_chat_resume(modem);
sprintf(buf, "AT+CFUN=%u", option_offmode);
--
1.6.3.3
More information about the ofono
mailing list