mirror of git://git.sysmocom.de/ofono
ifxmodem: Fix GPRS disconnect handling from network side
This commit is contained in:
parent
483663eeed
commit
3477a9c9e9
|
@ -387,14 +387,18 @@ static void cgev_notify(GAtResult *result, gpointer user_data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (gcd->state != STATE_IDLE && gcd->rawip) {
|
if (gcd->state != STATE_IDLE && gcd->rawip) {
|
||||||
|
g_at_rawip_shutdown(gcd->rawip);
|
||||||
|
|
||||||
g_at_rawip_unref(gcd->rawip);
|
g_at_rawip_unref(gcd->rawip);
|
||||||
gcd->rawip = NULL;
|
gcd->rawip = NULL;
|
||||||
|
|
||||||
gcd->active_context = 0;
|
|
||||||
gcd->state = STATE_IDLE;
|
|
||||||
|
|
||||||
g_at_chat_resume(gcd->chat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ofono_gprs_context_deactivated(gc, gcd->active_context);
|
||||||
|
|
||||||
|
gcd->active_context = 0;
|
||||||
|
gcd->state = STATE_IDLE;
|
||||||
|
|
||||||
|
g_at_chat_resume(gcd->chat);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ifx_gprs_context_probe(struct ofono_gprs_context *gc,
|
static int ifx_gprs_context_probe(struct ofono_gprs_context *gc,
|
||||||
|
|
Loading…
Reference in New Issue