summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:29:52 (GMT)
committerAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:30:32 (GMT)
commitaf48e1c8b7b4cdc4212540d0f893a09f68630959 (patch)
tree0cc917717d1f222093a919a9457c7ec643d85f4d
parentb43575fdf9c2f6b9f47dcb034343c0cb58e3df90 (diff)
broadband-modem-qmi: by default request only GSM-WCDMA mode messages
This should probably fix the issues seen with the Novatel E362 (CDMA+LTE): ModemManager[4813]: <debug> [1351697325.212782] [mm-broadband-modem-qmi.c:5541] load_initial_sms_parts(): loading messages from storage 'sm'... ModemManager[4813]: [/dev/cdc-wdm0] Sending message... <<<<<< QMUX: <<<<<< length = 16 <<<<<< flags = 0x00 <<<<<< service = "wms" <<<<<< client = 2 <<<<<< QMI: <<<<<< flags = "none" <<<<<< transaction = 3 <<<<<< tlv_length = 4 <<<<<< message = "List Messages" (0x0031) <<<<<< TLV: <<<<<< type = "Storage Type" (0x01) <<<<<< length = 1 <<<<<< value = 01 <<<<<< translated = 1 ModemManager[4813]: [/dev/cdc-wdm0] Received message... >>>>>> QMUX: >>>>>> length = 19 >>>>>> flags = 0x80 >>>>>> service = "wms" >>>>>> client = 2 >>>>>> QMI: >>>>>> flags = "response" >>>>>> transaction = 3 >>>>>> tlv_length = 7 >>>>>> message = "List Messages" (0x0031) >>>>>> TLV: >>>>>> type = "Result" (0x02) >>>>>> length = 4 >>>>>> value = 01:00:11:00 >>>>>> translated = FAILURE: MissingArgument ModemManager[4813]: <debug> [1351697325.215112] [mm-iface-modem-messaging.c:757] load_initial_sms_parts_ready(): Couldn't load SMS parts from storage 'sm': 'Couldn't list messages: QMI protocol error (17): 'MissingArgument''
-rw-r--r--src/mm-broadband-modem-qmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 033b74c..53b7dfc 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -5571,6 +5571,10 @@ load_initial_sms_parts (MMIfaceModemMessaging *self,
input,
mm_sms_storage_to_qmi_storage_type (storage),
NULL);
+ qmi_message_wms_list_messages_input_set_message_mode (
+ input,
+ QMI_WMS_MESSAGE_MODE_GSM_WCDMA,
+ NULL);
qmi_client_wms_list_messages (QMI_CLIENT_WMS (ctx->client),
input,
5,