summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Aggarwal <quic_akasagga@quicinc.com>2022-11-18 17:06:09 +0530
committerAkash Aggarwal <quic_akasagga@quicinc.com>2022-11-21 19:46:56 +0530
commitcfbd925e537b34da32af41cd79ea1c9ed34a14c1 (patch)
tree39cebc9758e38942cfde20ef198f6ad1f17f26f9
parentc9a5cbd56ce97dd150a6fd68037e73c78a9e6a7a (diff)
downloadlibqmi-cfbd925e537b34da32af41cd79ea1c9ed34a14c1.tar.gz
nas: add UMTS RSCP TLV in "Signal Info"
-rw-r--r--data/qmi-service-nas.json10
-rw-r--r--src/qmicli/qmicli-nas.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/data/qmi-service-nas.json b/data/qmi-service-nas.json
index c1fb6214..9379995a 100644
--- a/data/qmi-service-nas.json
+++ b/data/qmi-service-nas.json
@@ -3893,6 +3893,11 @@
"id" : "0x18",
"type" : "TLV",
"since" : "1.26.2",
+ "format" : "gint16" },
+ { "name" : "WCDMA RSCP",
+ "id" : "0x19",
+ "type" : "TLV",
+ "since" : "1.34",
"format" : "gint16" } ] },
// *********************************************************************************
@@ -4272,6 +4277,11 @@
"id" : "0x18",
"type" : "TLV",
"since" : "1.32",
+ "format" : "gint16" },
+ { "name" : "WCDMA RSCP",
+ "id" : "0x19",
+ "type" : "TLV",
+ "since" : "1.34",
"format" : "gint16" } ] },
// *********************************************************************************
diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
index e995af6b..23495012 100644
--- a/src/qmicli/qmicli-nas.c
+++ b/src/qmicli/qmicli-nas.c
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright (C) 2012-2017 Aleksander Morgado <aleksander@aleksander.es>
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc.
*/
#include "config.h"
@@ -353,6 +354,7 @@ get_signal_info_ready (QmiClientNas *client,
gint16 rsrp;
gint16 snr;
gint8 rscp;
+ gint16 wcdma_rscp;
gint16 rsrq_5g;
gint32 rssi_tdma;
gint32 rscp_tdma;
@@ -434,6 +436,14 @@ get_signal_info_ready (QmiClientNas *client,
(-0.5)*((gdouble)ecio));
}
+ /* WCDMA Signal Code Power... */
+ if (qmi_message_nas_get_signal_info_output_get_wcdma_rscp (output,
+ &wcdma_rscp,
+ NULL)) {
+ g_print ("\tRSCP: '%d dBm'\n",
+ (-1)*wcdma_rscp);
+ }
+
/* LTE... */
if (qmi_message_nas_get_signal_info_output_get_lte_signal_strength (output,
&rssi,