[OpenWrt-Devel] [PATCH uqmi] Add missing option for getting tdma signal strength

Sławomir Demeszko s.demeszko at wireless-instruments.com
Thu Jan 8 09:15:40 EST 2015


Signed-off-by: Sławomir Demeszko <s.demeszko at wireless-instruments.com>
---
 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);
 }
 
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list