diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-05-18 18:29:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-05-23 01:22:07 +0200 |
commit | 43db860c444da19d1a40df7d32903751e1d12638 (patch) | |
tree | 4150fba8d8cc266449f4a45a8fc99f28dcea8b88 /src/mm-bearer-qmi.c | |
parent | 7e8885d569d20259d1ae9f3c8c890ae9d4a2cd4d (diff) |
base-bearer: report connection error on network initiated disconnections
By default, fallback to "unknown" mobile equipment error when the
modem gets disconnected by the network and we don't have any way to
know a more detailed reason.
Diffstat (limited to 'src/mm-bearer-qmi.c')
-rw-r--r-- | src/mm-bearer-qmi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 02059831..ec46c6b0 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -2523,7 +2523,8 @@ disconnect (MMBaseBearer *_self, static void report_connection_status (MMBaseBearer *_self, - MMBearerConnectionStatus status) + MMBearerConnectionStatus status, + const GError *connection_error) { MMBearerQmi *self = MM_BEARER_QMI (_self); @@ -2535,7 +2536,7 @@ report_connection_status (MMBaseBearer *_self, } /* Chain up parent's report_connection_status() */ - MM_BASE_BEARER_CLASS (mm_bearer_qmi_parent_class)->report_connection_status (_self, status); + MM_BASE_BEARER_CLASS (mm_bearer_qmi_parent_class)->report_connection_status (_self, status, connection_error); } /*****************************************************************************/ |