diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-09 12:35:29 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-10-12 11:29:52 +0200 |
commit | a561f6edf0317ee4eb86e6811cd8cd5a7fbf5e60 (patch) | |
tree | faa4cd1aeb395699e739b47748363dc887b09d06 | |
parent | 7cb11f72cd3dcd460feee205d3faad267c5471c9 (diff) |
ublox: use +CEREG if LTE supported
-rw-r--r-- | plugins/ublox/mm-broadband-modem-ublox.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |