g_variant_builder_open(&b, G_VARIANT_TYPE("a{sv}"));
g_variant_builder_add(&b, "{sv}", "l_serving", value);
g_variant_builder_close(&b);
+ } else if (act == NETWORK_ACT_NR) {
+ value = g_variant_new("(iiiii)",
+ resp_get_ngbr_cell_info->info.serving.cell.nr.cell_id,
+ resp_get_ngbr_cell_info->info.serving.cell.nr.pcid,
+ resp_get_ngbr_cell_info->info.serving.cell.nr.nrarfcn,
+ resp_get_ngbr_cell_info->info.serving.cell.nr.tac,
+ resp_get_ngbr_cell_info->info.serving.cell.nr.rssi);
+ g_variant_builder_open(&b, G_VARIANT_TYPE("a{sv}"));
+ g_variant_builder_add(&b, "{sv}", "n_serving", value);
+ g_variant_builder_close(&b);
} else if (act >= NETWORK_ACT_IS95A && act <= NETWORK_ACT_EHRPD) {
value = g_variant_new("(uuuuii)",
resp_get_ngbr_cell_info->info.serving.cell.cdma.sid,
g_variant_builder_add(&b, "{sv}", "serving", value);
if ((act >= NETWORK_ACT_GSM
&& act <= NETWORK_ACT_GSM_UTRAN)
- || act == NETWORK_ACT_LTE) {
+ || act == NETWORK_ACT_LTE || act == NETWORK_ACT_NR) {
dbg("lac: [%d]", resp_get_serving_network->gsm.lac);
value = g_variant_new("(i)",
/* Update properties */
tcore_network_get_access_technology(source, &act);
- if (NETWORK_ACT_LTE == act) {
+ if (NETWORK_ACT_LTE == act || NETWORK_ACT_NR == act) {
telephony_network_set_lac(network, -1);
telephony_network_set_tac(network, location->lac);