diff options
author | Ben Chan <benchan@chromium.org> | 2017-01-23 23:07:57 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-24 11:07:44 +0100 |
commit | dffe045cd24deb27f61ae4b42b632523b2fe88b3 (patch) | |
tree | bdeb3792b412ae209b08fd7110e26726d06f6af3 | |
parent | a961448fa17bafde39f448729183552005bd7dd6 (diff) | |
download | ModemManager-dffe045cd24deb27f61ae4b42b632523b2fe88b3.tar.gz |
bearer-qmi: fix incorrect use of mm_base_bearer_get_status
This patch fixes a bug in packet_service_status_indication_cb(), which
incorrectly treats the MMBearerStatus enum value returned by
mm_base_bearer_get_status() as a MMBearerConnectionStatus enum value.
MMBearerStatus and MMBearerConnectionStatus can't be used
interchangeably as they have different enum values for the
'disconnected' and 'disconnecting' state.
(cherry picked from commit f773481542a1aaefd7a2157a0afdc8e961e73bde)
-rw-r--r-- | src/mm-bearer-qmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 6d471b195..8c0661702 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -771,11 +771,11 @@ packet_service_status_indication_cb (QmiClientWds *client, &connection_status, NULL, NULL)) { - MMBearerConnectionStatus bearer_status = mm_base_bearer_get_status (MM_BASE_BEARER (self)); + MMBearerStatus bearer_status = mm_base_bearer_get_status (MM_BASE_BEARER (self)); if (connection_status == QMI_WDS_CONNECTION_STATUS_DISCONNECTED && - bearer_status != MM_BEARER_CONNECTION_STATUS_DISCONNECTED && - bearer_status != MM_BEARER_CONNECTION_STATUS_DISCONNECTING) { + bearer_status != MM_BEARER_STATUS_DISCONNECTED && + bearer_status != MM_BEARER_STATUS_DISCONNECTING) { QmiWdsCallEndReason cer; QmiWdsVerboseCallEndReasonType verbose_cer_type; gint16 verbose_cer_reason; |