From bfa742ae13f36150e7b08fa0e9428a4a4f0f1d96 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 10 Sep 2012 11:59:58 +0200 Subject: [PATCH] broadband-modem-qmi: we don't support 3GPP2 messaging yet --- src/mm-broadband-modem-qmi.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index cd841169..27233b85 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -4866,8 +4866,15 @@ messaging_check_support (MMIfaceModemMessaging *self, QMI_SERVICE_WMS, MM_QMI_PORT_FLAG_DEFAULT); - mm_dbg ("Messaging capabilities %s by this modem", - supported ? "supported" : "not supported"); + /* We only handle 3GPP messaging (PDU based) currently, so just ignore + * CDMA-only QMI modems */ + if (mm_iface_modem_is_cdma_only (MM_IFACE_MODEM (self)) && supported) { + mm_info ("Messaging capabilities supported by this modem, " + "but 3GPP2 messaging not supported yet by ModemManager"); + supported = FALSE; + } else + mm_dbg ("Messaging capabilities %s by this modem", + supported ? "supported" : "not supported"); g_simple_async_result_set_op_res_gboolean (result, supported); g_simple_async_result_complete_in_idle (result);