From fa67a4f9bb014c947a9bb1c5f207ea787c8976b7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 9 Oct 2018 10:50:03 +0200 Subject: sierra-legacy: implement connection status monitoring with !SCACT? Devices like the Netgear AC313U require explicit context monitoring, otherwise the device may end up disconnected internally and MM would still think that the connection is ongoing. --- src/mm-modem-helpers.c | 2 +- src/mm-modem-helpers.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index a1c7e9a2..296b9f3a 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -1554,7 +1554,7 @@ mm_3gpp_pdp_context_active_list_free (GList *pdp_active_list) g_list_free_full (pdp_active_list, (GDestroyNotify) mm_3gpp_pdp_context_active_free); } -static gint +gint mm_3gpp_pdp_context_active_cmp (MM3gppPdpContextActive *a, MM3gppPdpContextActive *b) { diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 30855f27..a2ee8254 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -181,6 +181,8 @@ typedef struct { gboolean active; } MM3gppPdpContextActive; void mm_3gpp_pdp_context_active_list_free (GList *pdp_active_list); +gint mm_3gpp_pdp_context_active_cmp (MM3gppPdpContextActive *a, + MM3gppPdpContextActive *b); GList *mm_3gpp_parse_cgact_read_response (const gchar *reply, GError **error); -- cgit v1.2.3-70-g09d2