From: Sławomir Demeszko Date: Thu, 8 Jan 2015 14:15:40 +0000 (+0100) Subject: Add missing option for getting tdma signal strength X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c46773da292a6e0b6cdfcdeeb7e19b00707db51c;p=oweals%2Fuqmi.git Add missing option for getting tdma signal strength Signed-off-by: SÅ‚awomir Demeszko --- 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); }