From c46773da292a6e0b6cdfcdeeb7e19b00707db51c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C5=82awomir=20Demeszko?= Date: Thu, 8 Jan 2015 15:15:40 +0100 Subject: [PATCH] Add missing option for getting tdma signal strength MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: SÅ‚awomir Demeszko --- commands-nas.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands-nas.c b/commands-nas.c index be06ee4..831e3f4 100644 --- a/commands-nas.c +++ b/commands-nas.c @@ -152,6 +152,11 @@ cmd_nas_get_signal_info_cb(struct qmi_dev *qmi, struct qmi_request *req, struct blobmsg_add_u32(&status, "snr", (int32_t) res.data.lte_signal_strength.snr); } + if (res.set.tdma_signal_strength) { + blobmsg_add_string(&status, "type", "tdma"); + blobmsg_add_u32(&status, "signal", (int32_t) res.data.tdma_signal_strength); + } + blobmsg_close_table(&status, c); } -- 2.25.1