summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJongSeok Won <wjs890204@gmail.com>2020-07-31 11:20:38 +0900
committerDenis Kenzior <denkenz@gmail.com>2020-07-31 10:18:53 -0500
commit4f4fcc494477082e4fbcc2619aff2ae1846e26b8 (patch)
treef01b1b4dcbdc6dc846f7440ae32f7a06eb5eeaa3 /src
parent8ba615801154bd20e9035976d9a3f60aebae3d65 (diff)
downloadofono-4f4fcc494477082e4fbcc2619aff2ae1846e26b8.tar.gz
netmon: added PCI, TAC, SNR value
To support cell type LTE, the value of PCI, TAC, SNR is added
Diffstat (limited to 'src')
-rw-r--r--src/netmon.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/netmon.c b/src/netmon.c
index 9eacb3ca..10e3ee2b 100644
--- a/src/netmon.c
+++ b/src/netmon.c
@@ -213,6 +213,27 @@ static void netmon_cell_info_dict_append(DBusMessageIter *dict,
intval, uint8_t, DBUS_TYPE_BYTE);
break;
+ case OFONO_NETMON_INFO_PCI:
+ intval = va_arg(*arglist, int);
+
+ CELL_INFO_DICT_APPEND(dict, "PhysicalCellId",
+ intval, uint16_t, DBUS_TYPE_UINT16);
+ break;
+
+ case OFONO_NETMON_INFO_TAC:
+ intval = va_arg(*arglist, int);
+
+ CELL_INFO_DICT_APPEND(dict, "TrackingAreaCode",
+ intval, uint16_t, DBUS_TYPE_UINT16);
+ break;
+
+ case OFONO_NETMON_INFO_SNR:
+ intval = va_arg(*arglist, int);
+
+ ofono_dbus_dict_append(dict, "SingalToNoiseRatio",
+ DBUS_TYPE_INT32, &intval);
+ break;
+
case OFONO_NETMON_INFO_INVALID:
break;
}