From patchwork Thu Jan 8 14:15:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C5=82awomir_Demeszko?= X-Patchwork-Id: 426659 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F26731400DE for ; Fri, 9 Jan 2015 01:16:23 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D66D128051C; Thu, 8 Jan 2015 15:14:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2A6F72802F8 for ; Thu, 8 Jan 2015 15:13:44 +0100 (CET) X-policyd-weight: using cached result; rate: -3.6 Received: from hosting.nazwa24.pl (ns1.hosting.nazwa24.pl [46.242.129.143]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 8 Jan 2015 15:13:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wireless-instruments.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=6Sf9CiC8oWMsRkjlARIfTMnLicCMftEizExz2lnupio=; b=UHTWoApvT+YrGuFbukzVCL3GaIc+zjJzchyUpgdG1353NBgAbm+OlgMKiMVTg0rg14bVAXE7XeFSQl571bZSUT5ybEr0N2D4a4cXS28K2RJ8yc+LPYcSelReGC+f6bp+hkjIBItnB/AO1zrYlLF5IWOxRd081YYh9ketuFbs38Y=; Received: from afo149.internetdsl.tpnet.pl ([83.16.144.149]:41240 helo=localhost.localdomain) by hosting.nazwa24.pl with esmtpsa (UNKNOWN:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y9DsK-0000vj-Hv; Thu, 08 Jan 2015 15:15:48 +0100 From: =?UTF-8?q?S=C5=82awomir=20Demeszko?= To: openwrt-devel@lists.openwrt.org Date: Thu, 8 Jan 2015 15:15:40 +0100 Message-Id: <1420726540-25626-1-git-send-email-s.demeszko@wireless-instruments.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hosting.nazwa24.pl X-AntiAbuse: Original Domain - lists.openwrt.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - wireless-instruments.com X-Get-Message-Sender-Via: hosting.nazwa24.pl: authenticated_id: s.demeszko@wireless-instruments.com Cc: =?UTF-8?q?S=C5=82awomir=20Demeszko?= Subject: [OpenWrt-Devel] [PATCH uqmi] Add missing option for getting tdma signal strength X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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); }