diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-01-04 14:56:31 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-01-18 09:00:10 +0000 |
commit | ec7bcc88d30595423621c50113eebff4e2282fdd (patch) | |
tree | f3df141b760c8a368617616fb9bc9f329fde8bca /libmm-glib/mm-cell-info.c | |
parent | c1fc027f6620e2235f903fecb4a5308975047299 (diff) |
libmm-glib,cell-info-nr5g: new 'MMCellInfoNr5g' object
Implementing support for 5GNR cell info.
Diffstat (limited to 'libmm-glib/mm-cell-info.c')
-rw-r--r-- | libmm-glib/mm-cell-info.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmm-glib/mm-cell-info.c b/libmm-glib/mm-cell-info.c index f3c9644f..9ba77555 100644 --- a/libmm-glib/mm-cell-info.c +++ b/libmm-glib/mm-cell-info.c @@ -26,6 +26,7 @@ #include "mm-cell-info-umts.h" #include "mm-cell-info-tdscdma.h" #include "mm-cell-info-lte.h" +#include "mm-cell-info-nr5g.h" #include "mm-enums-types.h" #include "mm-errors-types.h" @@ -69,7 +70,8 @@ ensure_cell_type (MMCellInfo *self) self->priv->cell_type = MM_CELL_TYPE_TDSCDMA; else if (MM_IS_CELL_INFO_LTE (self)) self->priv->cell_type = MM_CELL_TYPE_LTE; - /* MM_CELL_TYPE_5GNR; */ + else if (MM_IS_CELL_INFO_NR5G (self)) + self->priv->cell_type = MM_CELL_TYPE_5GNR; } /** @@ -179,6 +181,8 @@ mm_cell_info_new_from_dictionary (GVariant *dictionary, self = mm_cell_info_lte_new_from_dictionary (dict); break; case MM_CELL_TYPE_5GNR: + self = mm_cell_info_nr5g_new_from_dictionary (dict); + break; default: break; } |