From a561f6edf0317ee4eb86e6811cd8cd5a7fbf5e60 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 9 Aug 2016 12:35:29 +0200 Subject: [PATCH] ublox: use +CEREG if LTE supported --- plugins/ublox/mm-broadband-modem-ublox.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 0d1a2dd0..d649c5f5 100644 --- a/plugins/ublox/mm-broadband-modem-ublox.c +++ b/plugins/ublox/mm-broadband-modem-ublox.c @@ -24,6 +24,7 @@ #include "ModemManager.h" #include "mm-log.h" #include "mm-iface-modem.h" +#include "mm-iface-modem-3gpp.h" #include "mm-base-modem-at.h" #include "mm-broadband-bearer.h" #include "mm-broadband-modem-ublox.h" @@ -370,6 +371,10 @@ load_supported_modes_finish (MMIfaceModem *self, /* Decide and store which combination to apply when ANY requested */ MM_BROADBAND_MODEM_UBLOX (self)->priv->any_allowed = mm_ublox_get_modem_mode_any (combinations); + /* If 4G supported, explicitly use +CEREG */ + if (MM_BROADBAND_MODEM_UBLOX (self)->priv->any_allowed & MM_MODEM_MODE_4G) + g_object_set (self, MM_IFACE_MODEM_3GPP_EPS_NETWORK_SUPPORTED, TRUE, NULL); + return combinations; }