Message ID | 20201124013252.18323-5-ansuelsmth@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=yCheqL3M; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ckMbtQZm; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cg6622FFmz9sRK for <incoming@patchwork.ozlabs.org>; Tue, 24 Nov 2020 12:35:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1O0cs+xn9OpwVJE61QF3Ncihq1XbhJv5+wkSIHvBr5s=; b=yCheqL3MViaQ8ZFGesHXsNIzn XHHWGDPUCuatWBeEOhk6U5ZdsXujCLUWEde9QdFgvrzgziEDOKoGH10KYadhOCN2GGOiNEFF8emxl Wppru5/zMlHS4LGLcbtBRWEgHU1iRRH4qZyldOL4qD7TuXf0si4utCNKjCiAk/NmvwMj5sGDNBw2l OpXGaTiw/zM+6PRXlzE8LH3v2d1d1PxSS0dKLS7K4BFqcxuoc8/8lV/+TZcLlReTtJHGxK8pb4oOM 87DlKNJ1WlTbWCxtJtdWXuKtxEqY3A7Nd4Mox1s9Gs0yAKaEQR9XuHPpkJneh1YO9KKKQgVzqERXM J9Gu+JB4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khND5-0000cP-DU; Tue, 24 Nov 2020 01:33:35 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khNCh-0000XY-1s for openwrt-devel@lists.openwrt.org; Tue, 24 Nov 2020 01:33:15 +0000 Received: by mail-qk1-x741.google.com with SMTP id l2so19141839qkf.0 for <openwrt-devel@lists.openwrt.org>; Mon, 23 Nov 2020 17:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=voUNkeaYYDJo6aWyRVbOn1okH2yAabm7/l4INlPgUDk=; b=ckMbtQZm34kXS+Xqw5sUnLleADjxh+9H33k5VuhJ84sZ+MJgE7qxfEQwtQGi58We03 xs/yt+f+WGVK1vDNx7VzKU34XihGVa2J5Ih4S8rjUHXAOJN8MT+bh3W3rvDgtGiG7q2n z4/DyWraCTXJ/pgcNxPMkmmhKPlvSmQIyd3nd6GdnUqpz/7XKFW85ssOobEJTjInqBMK +O6vTJC1HlsUHZvtT4cFtq7rLLkdow7YjTAA8y1Cqi3XYlCVZ7VKK9Q6eOFICv0JSnlj 332FnDIIDdbd/0PbExXl61H/rk9Tzzhl+ce1icyrGSFr9PTx8onyd/pfGLZr86mqWs2S 4CHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=voUNkeaYYDJo6aWyRVbOn1okH2yAabm7/l4INlPgUDk=; b=KOdfrGPiLCSUaD7KV7EfApWv7CaGnQRFZPl/uti2YDKhAh58s3CqfattG5xLZIdfFM jOZdgBgrmf43/KM+MXj9qlq5qr8m6j7NCmFR7UTzu5Pby3izpi6bKxxMuRfuSzVerSUE RW8LIP8wCJgFzKrcrO+eCNxW/X9eHPvt8CBQj0IHkZyoXbzU1MWuE2NMogy58OYfMgy9 FI03894GU+5it8h7WhBIraqT6WzMQVoU5CnZkzXl8Vw+sJw3n/fMvwL1U461s8kuMXHA AMn8AzfhUjsfNwWQOjZNz+Z0JTR5/VR1yq1jk7+2AjXnjtj1oyOQYyaRjMiVwC9KpwOP zBDA== X-Gm-Message-State: AOAM533id9FvSWWZyBa8R5EOzNDXTCh8TU9s0sqkrzaSZ623MIV3ZCet OtOg09lgJEMSsVPV8/ThjDl15BkuByA= X-Google-Smtp-Source: ABdhPJzPBWLB4Tx2z/gAaaWRAktM84tZomJgOnbk9OE7Yz3w5g/lPxuvZySBetQwmWeJRTsUZW+GAA== X-Received: by 2002:a37:9481:: with SMTP id w123mr2416674qkd.3.1606181589000; Mon, 23 Nov 2020 17:33:09 -0800 (PST) Received: from ansuel-xps20.localdomain (93-39-149-95.ip76.fastwebnet.it. [93.39.149.95]) by smtp.googlemail.com with ESMTPSA id g18sm11025872qtv.79.2020.11.23.17.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 17:33:08 -0800 (PST) From: Ansuel Smith <ansuelsmth@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [RPCD PATCH v2 4/4] iwinfo: export center channel for info ubus call Date: Tue, 24 Nov 2020 02:32:52 +0100 Message-Id: <20201124013252.18323-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201124013252.18323-1-ansuelsmth@gmail.com> References: <20201124013252.18323-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_203311_330433_6B5742E6 X-CRM114-Status: GOOD ( 11.85 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:741 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: Ansuel Smith <ansuelsmth@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
Add support channel with to iwinfo
|
expand
|
diff --git a/iwinfo.c b/iwinfo.c index 45ca784..94fa822 100644 --- a/iwinfo.c +++ b/iwinfo.c @@ -364,6 +364,8 @@ rpc_iwinfo_info(struct ubus_context *ctx, struct ubus_object *obj, rpc_iwinfo_call_int("mode", iw->mode, IWINFO_OPMODE_NAMES); rpc_iwinfo_call_int("channel", iw->channel, NULL); + rpc_iwinfo_call_int("center_chan1", iw->center_chan1, NULL); + rpc_iwinfo_call_int("center_chan2", iw->center_chan2, NULL); rpc_iwinfo_call_int("frequency", iw->frequency, NULL); rpc_iwinfo_call_int("frequency_offset", iw->frequency_offset, NULL);
Iwinfo export the center channel sued by the wifi. Include this data in the ubus info call to better know the channel utilizzation of the wifi. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> --- iwinfo.c | 2 ++ 1 file changed, 2 insertions(+)