[PATCH] Add missing unhandled "+CGEV: ME DEACT" URC That forces a context to be down by UE
by Bassem Boubaker
The URC is:
+CGEV: ME DEACT <PDP_type>, <PDP_addr>, [<cid>]
This inform us that the mobile termination has forced a context desactivation.
This implies that the active cid context must be down.
---
drivers/atmodem/gprs-context.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c
index 79ac4c8..6d4f0ce 100644
--- a/drivers/atmodem/gprs-context.c
+++ b/drivers/atmodem/gprs-context.c
@@ -365,6 +365,9 @@ static void cgev_notify(GAtResult *result, gpointer user_data)
if (g_str_has_prefix(event, "NW DEACT") == FALSE)
return;
+ if (g_str_has_prefix(event, "ME DEACT") == FALSE)
+ return;
+
if (!g_at_result_iter_skip_next(&iter))
return;
--
2.7.4
3 years, 11 months