aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-cell-info.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-12-28 15:08:37 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-01-18 09:00:10 +0000
commit58de2a990470f7ae0194a6648bc7d5663e846f4e (patch)
tree1633789ea96b1bf6f5af133e00b18e8d60fb702f /libmm-glib/mm-cell-info.c
parentbfb66970f2f1ebb0f3f3af6667bd8443967a339d (diff)
libmm-glib,cell-info-cdma: new 'MMCellInfoCdma' object
Implementing support for CDMA cell info.
Diffstat (limited to 'libmm-glib/mm-cell-info.c')
-rw-r--r--libmm-glib/mm-cell-info.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libmm-glib/mm-cell-info.c b/libmm-glib/mm-cell-info.c
index e733c769..c7267001 100644
--- a/libmm-glib/mm-cell-info.c
+++ b/libmm-glib/mm-cell-info.c
@@ -21,6 +21,7 @@
*/
#include "mm-cell-info.h"
+#include "mm-cell-info-cdma.h"
#include "mm-enums-types.h"
#include "mm-errors-types.h"
@@ -54,7 +55,9 @@ ensure_cell_type (MMCellInfo *self)
if (self->priv->cell_type != MM_CELL_TYPE_UNKNOWN)
return;
- /* MM_CELL_TYPE_CDMA; */
+ if (MM_IS_CELL_INFO_CDMA (self))
+ self->priv->cell_type = MM_CELL_TYPE_CDMA;
+
/* MM_CELL_TYPE_GSM; */
/* MM_CELL_TYPE_UMTS; */
/* MM_CELL_TYPE_TDSCDMA; */
@@ -154,6 +157,8 @@ mm_cell_info_new_from_dictionary (GVariant *dictionary,
}
switch (g_variant_get_uint32 (aux)) {
case MM_CELL_TYPE_CDMA:
+ self = mm_cell_info_cdma_new_from_dictionary (dict);
+ break;
case MM_CELL_TYPE_GSM:
case MM_CELL_TYPE_UMTS:
case MM_CELL_TYPE_TDSCDMA: