aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-05-16 16:16:39 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-05-20 10:14:10 +0200
commit5caa0c96fbcaabbbf15546d511c1fea097b30a44 (patch)
treec3d46970a45e2785b2d92b99bd23fa5d07fbb3fe
parent2a93ca92810c6759dd51936ef6b76791504ee41a (diff)
broadband-modem-qmi: always specify message mode when reading SMS
-rw-r--r--src/mm-broadband-modem-qmi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 32a43473..f71cfaee 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -6127,6 +6127,11 @@ read_next_sms_part (LoadInitialSmsPartsContext *ctx)
mm_sms_storage_to_qmi_storage_type (ctx->storage),
message->memory_index,
NULL);
+ /* Only reading 3GPP SMS for now */
+ qmi_message_wms_raw_read_input_set_message_mode (
+ input,
+ QMI_WMS_MESSAGE_MODE_GSM_WCDMA,
+ NULL);
qmi_client_wms_raw_read (QMI_CLIENT_WMS (ctx->client),
input,
3,
@@ -6230,6 +6235,7 @@ typedef struct {
QmiClientWms *client;
QmiWmsStorageType storage;
guint32 memory_index;
+ QmiWmsMessageMode message_mode;
} IndicationRawReadContext;
static void
@@ -6312,6 +6318,18 @@ messaging_event_report_indication_cb (QmiClientNas *client,
storage,
memory_index,
NULL);
+
+ /* Default to 3GPP message mode if none given */
+ if (!qmi_indication_wms_event_report_output_get_message_mode (
+ output,
+ &ctx->message_mode,
+ NULL))
+ ctx->message_mode = QMI_WMS_MESSAGE_MODE_GSM_WCDMA;
+ qmi_message_wms_raw_read_input_set_message_mode (
+ input,
+ ctx->message_mode,
+ NULL);
+
qmi_client_wms_raw_read (QMI_CLIENT_WMS (client),
input,
3,