From f4941ede665bffbf1cd25266781da6625fb09fb0 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 6 Dec 2018 14:06:56 +0100 Subject: [PATCH] xmm,dell: add defaults for MBIM-derived objects For subclasses of MMBroadbandModemMbim, also apply the same property defaults. E.g. we want to avoid peridic signal quality polling and we also want to report that SIM hot swap is supported. --- plugins/dell/mm-broadband-modem-dell-dw5821e.c | 4 ++++ plugins/xmm/mm-broadband-modem-mbim-xmm.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/plugins/dell/mm-broadband-modem-dell-dw5821e.c b/plugins/dell/mm-broadband-modem-dell-dw5821e.c index bf73a6d8..cd3fa29a 100644 --- a/plugins/dell/mm-broadband-modem-dell-dw5821e.c +++ b/plugins/dell/mm-broadband-modem-dell-dw5821e.c @@ -30,6 +30,7 @@ #include "mm-errors-types.h" #include "mm-modem-helpers.h" #include "mm-base-modem-at.h" +#include "mm-iface-modem.h" #include "mm-iface-modem-location.h" #include "mm-broadband-modem-dell-dw5821e.h" @@ -284,6 +285,9 @@ mm_broadband_modem_dell_dw5821e_new (const gchar *device, MM_BASE_MODEM_PLUGIN, plugin, MM_BASE_MODEM_VENDOR_ID, vendor_id, MM_BASE_MODEM_PRODUCT_ID, product_id, + MM_IFACE_MODEM_SIM_HOT_SWAP_SUPPORTED, TRUE, + MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED, FALSE, + MM_IFACE_MODEM_PERIODIC_SIGNAL_CHECK_DISABLED, TRUE, NULL); } diff --git a/plugins/xmm/mm-broadband-modem-mbim-xmm.c b/plugins/xmm/mm-broadband-modem-mbim-xmm.c index 85a91fc8..1aa8b7ba 100644 --- a/plugins/xmm/mm-broadband-modem-mbim-xmm.c +++ b/plugins/xmm/mm-broadband-modem-mbim-xmm.c @@ -54,6 +54,9 @@ mm_broadband_modem_mbim_xmm_new (const gchar *device, MM_BASE_MODEM_PLUGIN, plugin, MM_BASE_MODEM_VENDOR_ID, vendor_id, MM_BASE_MODEM_PRODUCT_ID, product_id, + MM_IFACE_MODEM_SIM_HOT_SWAP_SUPPORTED, TRUE, + MM_IFACE_MODEM_SIM_HOT_SWAP_CONFIGURED, FALSE, + MM_IFACE_MODEM_PERIODIC_SIGNAL_CHECK_DISABLED, TRUE, NULL); }