Message ID | 20201206011118.20601-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=s4PYV8M8; 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=O52RaYDH; 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 4CpT5p4wn7z9sW9 for <incoming@patchwork.ozlabs.org>; Sun, 6 Dec 2020 12:15:42 +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=s4PYV8M86FM82iLBaCNg7il5K lMv25bLF2Av85V8cP6o1hvboydifipL4eqEkxA1v3EUB1EH3B6jfTBXJpce76noliG16zjjeh+Bw2 5tSq+N9p7dvsbs8EOa1bR9CuFnMDCqgRJoT5wbqkh9gC45Y/saHAcZ+SwurE4hSII4qiwAL9OQFlo 01i3hGnw8XJxODAXQjqW41+jz+ZjTF9V98juUC8hIWvlYd0kSL2vMPPbnoSh1B93mlbHSbHvpvH1E CRKhWeTbWVOmW1Sqllg08g6ykejiXA6NJNHtBkmEDRpVamAJ9FR1mbKuqRotUromd1SwaUiVmjgst kGnp+AZzQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1klicE-0006Po-NB; Sun, 06 Dec 2020 01:13:30 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1klic5-0006Ne-32 for openwrt-devel@lists.openwrt.org; Sun, 06 Dec 2020 01:13:22 +0000 Received: by mail-wr1-x444.google.com with SMTP id e7so9059842wrv.6 for <openwrt-devel@lists.openwrt.org>; Sat, 05 Dec 2020 17:13:20 -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=O52RaYDH+zuFl3JATgsn6ZCgej6SBx7R1fWWYRnJNFV1RslQzwvA6sVXroPgkCgn30 BeVX1cTzi0Y48Flrm05LjyxfIy5JdEiPfWJkJRoZtgplxYp8Mn0RzluVOwoVr65idawK Qmp7431uwCEKuuyI+KNkxafciz1PbuusA4yHK4irWSZhAKKgYlWjm2P9yig+Ec6/Jefd WRRdTDCkfIGtv7FWzv8RhSNcyzbVLEIFJXZtc+IZvY7KC/o4CH+o/s7704yxtpyZ+3AL nHm3pG2FC6cbLbGtjsaNVNQ97B//aYd+CsPXqwe8thoV3KH8RcW2gk371DdOQ3FeuAqJ m/ag== 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=rf/tazWWek8Savagysxaot04MTrXqxuW8p7La/SX1wfM9FfwBESaLZLXBZ/rCmUlYO yrBGrbCq8ezE+K9xQfyX0SfLzOI2SstItXpN0wBpHBEh3Opmn1JmjIhnT0js4e4qeUKh th7m5PGYfm4r7shGGEBlfKLZdhZyyYjSUvlFGuvQPg5WUJ+GPGJ1hJYNOvo2IbA7G2p8 O8j5C/Z5r30afdMmcgXdlFnAJOJXamBzw4zGhw7n7ED38VQf3TV0irAkOuFs26xS/Our WHwyAa22mSmuRCRtaMavLvo1A/3D6tRPRXmTHApDnVcA5G85pCYMsodONJiIWVMWJteH Q8bw== X-Gm-Message-State: AOAM530aGfFCNdWq6chqKKJFM2Z0p+xKzwvK4JOLVPVLTFh6D4C+ycpW /8WzD9nkSTkr4wjc89UDTmafbexPvVY= X-Google-Smtp-Source: ABdhPJwygyZ94nVDD/DYb6q7p5RObCH4s7UTct12+brkQcXeIdZ34Vlumt0pp9ai//FpgEyNnSxBHg== X-Received: by 2002:adf:ec0d:: with SMTP id x13mr12498207wrn.207.1607217199525; Sat, 05 Dec 2020 17:13:19 -0800 (PST) Received: from ansuel-xps20.localdomain (host-87-1-248-10.retail.telecomitalia.it. [87.1.248.10]) by smtp.googlemail.com with ESMTPSA id b73sm7328415wmb.0.2020.12.05.17.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2020 17:13:18 -0800 (PST) From: Ansuel Smith <ansuelsmth@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [RPCD PATCH v3 4/4] iwinfo: export center channel for info ubus call Date: Sun, 6 Dec 2020 02:11:18 +0100 Message-Id: <20201206011118.20601-5-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206011118.20601-1-ansuelsmth@gmail.com> References: <20201206011118.20601-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201205_201321_267966_EAA5533C X-CRM114-Status: GOOD ( 11.29 ) 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 [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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(+)