summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-27 12:25:26 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-27 12:27:03 +0200
commitfed55d03d20202cded5306e6c918bbbd3f2eed97 (patch)
treeed308f21214a32a70989eb5e0f9b7b079f54a848
parentc3196323bcb4b94ea3eda7a8f8a6fff0eb9e52c2 (diff)
cli: skip printing network info for SINR and IO
Seems that SINR and IO, even if they are supposedly only meaningful in EV-DO, may still be given for other networks. [27 Sep 2012, 11:17:36] [Debug] [/dev/cdc-wdm0] Received message... >>>>>> QMUX: >>>>>> length = 49 >>>>>> flags = 0x80 >>>>>> service = "nas" >>>>>> client = 6 >>>>>> QMI: >>>>>> flags = "response" >>>>>> transaction = 1 >>>>>> tlv_length = 37 >>>>>> message = "Get Signal Strength" (0x0020) >>>>>> TLV: >>>>>> type = "Result" (0x02) >>>>>> length = 4 >>>>>> value = 00:00:00:00 >>>>>> translated = SUCCESS >>>>>> TLV: >>>>>> type = "Signal Strength" (0x01) >>>>>> length = 2 >>>>>> value = A8:05 >>>>>> translated = [ strength = '-88' radio_interface = '5' ] >>>>>> TLV: >>>>>> type = "RSSI List" (0x11) >>>>>> length = 4 >>>>>> value = 01:00:58:05 >>>>>> translated = { [0] = '[ rssi = '88' radio_interface = '5' ] '} >>>>>> TLV: >>>>>> type = "ECIO List" (0x12) >>>>>> length = 4 >>>>>> value = 01:00:FC:05 >>>>>> translated = { [0] = '[ ecio = '252' radio_interface = '5' ] '} >>>>>> TLV: >>>>>> type = "IO" (0x13) >>>>>> length = 4 >>>>>> value = 96:FF:FF:FF >>>>>> translated = -106 >>>>>> TLV: >>>>>> type = "SINR" (0x14) >>>>>> length = 1 >>>>>> value = 08 >>>>>> translated = 8
-rw-r--r--cli/qmicli-nas.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/qmicli-nas.c b/cli/qmicli-nas.c
index 47bbd71..1884483 100644
--- a/cli/qmicli-nas.c
+++ b/cli/qmicli-nas.c
@@ -418,17 +418,12 @@ get_signal_strength_ready (QmiClientNas *client,
/* IO... */
if (qmi_message_nas_get_signal_strength_output_get_io (output, &io, NULL)) {
- g_print ("IO:\n"
- "\tNetwork '%s': '%d dBm'\n",
- qmi_nas_radio_interface_get_string (QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO),
- io);
+ g_print ("IO: '%d dBm'\n", io);
}
/* SINR level */
if (qmi_message_nas_get_signal_strength_output_get_sinr (output, &sinr_level, NULL)) {
- g_print ("SINR:\n"
- "\tNetwork '%s': (%u) '%.1lf dB'\n",
- qmi_nas_radio_interface_get_string (QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO),
+ g_print ("SINR: (%u) '%.1lf dB'\n",
sinr_level, get_db_from_sinr_level (sinr_level));
}