iface-modem-3gpp: if modem is LTE-only, assume no CS network is expected

This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:43 +01:00
parent ffae95a46b
commit a68847a091
+9
View File
@@ -1730,6 +1730,15 @@ mm_iface_modem_3gpp_initialize (MMIfaceModem3gpp *self,
g_object_set (self,
MM_IFACE_MODEM_3GPP_DBUS_SKELETON, skeleton,
NULL);
/* If the modem is *only* LTE, we assume that CS network is not
* supported */
if (mm_iface_modem_is_3gpp_lte_only (MM_IFACE_MODEM (self))) {
mm_dbg ("Modem is LTE-only, assuming CS network is not supported");
g_object_set (self,
MM_IFACE_MODEM_3GPP_CS_NETWORK_SUPPORTED, FALSE,
NULL);
}
}
/* Perform async initialization here */