| Message ID | 20211118164004.25803-2-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: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=D00mIQ80; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=oQ2RgP8l; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hw5Fl3T8Yz9sXM for <incoming@patchwork.ozlabs.org>; Fri, 19 Nov 2021 03:43:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hKWtN9QTg4b2kFZtGTiGHAWMIg2tyddQuGgyPzW4yL4=; b=D00mIQ80taMJfJ Hhkalgvy72CItczdJLh3BevJIheD8Tr8DHmc9sRA3+hUMZPSVIkixoUvopHMoLIRqSmjG2ZFW8mW2 etKbIysdA478D7C4YoJREM0JGQtIzcp6VsEx4UqoIOM+/vqIst6dGe7UXCoHZQ4mBClU4+6Yz59tT +HLFHeOTqV6CHUfoghQZMUh72HgL4LTbDn7fMChjQMP5QwGVeav2ZdpjKbBBLH0Vm0stvIhSfBnkb 0X4HwUQm9N3Z8gtS2eae2tPjGWHCewLysDtBuHjkeGKbLKx/1/lHNOe+hauacnlEnGdM2/ZyD3DLg IlXg4NhU652UndSA0NCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnkSl-008NYO-Ll; Thu, 18 Nov 2021 16:40:39 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnkSV-008NVq-V8 for openwrt-devel@lists.openwrt.org; Thu, 18 Nov 2021 16:40:25 +0000 Received: by mail-ed1-x52e.google.com with SMTP id y13so29506188edd.13 for <openwrt-devel@lists.openwrt.org>; Thu, 18 Nov 2021 08:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=crOnIn2tIyZ3z4wv8Y+i3bDAFYUiJzlRgr3pRFIGl80=; b=oQ2RgP8l/bWbC4ABhU6ByZVXlB/xgmXmC/0VCd98dCvUGvpEykfoK0TiaHSom4uwYm 5SL+pMp2kwsrOZFLbJhNy5prWmr2CiIrwp+Ou7uDC7kdGgVduHRvnYOcPSZnnEJQCVy2 IasQT110O13iqnb+XBc8dbqlUQ/EuX+UP+cxMcZ3/aKL4gkfBRNPTh85bDpVP7dKoHaH 5HTmu9seYxujXzLnMMiT7MONUTOXmcAFaTrSfbYv9Z7Y2BUjAkB73kOww9MQrOKyJid9 f0jfxFQKFi+dbJ+KsNWIZb9AvtBsbUT2zT1GGAtRwPQzCM89Nxr4iA2V+7oN0dvJR6j7 grkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=crOnIn2tIyZ3z4wv8Y+i3bDAFYUiJzlRgr3pRFIGl80=; b=KN0mp8R2TlRgRgWBf6gTB/KrFfNWdUGRwJzGQ0/aRBRsAJsV2LBcReyVBiJiEYzLCs RGbW1gw+GloOqUM8GlV7kMT+2md3u1bPE55axBSCIyGfAHDxyt+VsvHhb31wmY7rVVxw 9GkmtndkuDo1sRgfBAB5zuYansi7RdsjAY+tY/hKYuyoJRFaofklZR+xw7kJFG/RKwy2 2FFmBn/zyW/sVi/vO9EEZaJuK1jWdgC+fQtI8SYqNEyY/+2MVh9xzhqyLtgLv0+RWJnB 6b005HMbFmyRCPuuFq92YM/9a3qFc6XXlT2sT24rZt8lLLfzEEr7RUgX15yM735kbnxH 8XwA== X-Gm-Message-State: AOAM532FhyDaYZ9Sd9uaJok3/mBocWxPsoRtMFsozgJhEFKMvMtPFw54 k/jPHoR1/52AcPd4diX9Qw2etrAK+Pg= X-Google-Smtp-Source: ABdhPJwAh9Fvj0fj9y4KostaY8oldpndsiSXI61bH9tz6grEr0ArSpqTKMSKtq9Z1MtGSBLEHxW+cg== X-Received: by 2002:a50:d710:: with SMTP id t16mr13506410edi.50.1637253621733; Thu, 18 Nov 2021 08:40:21 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id h10sm175886edr.95.2021.11.18.08.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 08:40:21 -0800 (PST) From: Ansuel Smith <ansuelsmth@gmail.com> To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> Cc: Ansuel Smith <ansuelsmth@gmail.com> Subject: [rpcd PATCH 2/2] rpcd: iwinfo: export no_outdoor restriction Date: Thu, 18 Nov 2021 17:40:04 +0100 Message-Id: <20211118164004.25803-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211118164004.25803-1-ansuelsmth@gmail.com> References: <20211118164004.25803-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211118_084024_021042_EC9D9015 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A channel can declare restriction where it should be used only indoor. Export this restriction in the channel data. Signed-off-by: Ansuel Smith --- iwinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iwinfo.c b/iwinfo.c index ba4fc1e..85860e6 100644 --- a/iwinfo.c +++ b/iwinfo.c @@ -723, 6 +723, 9 @@ rpc_iwinfo_freqlist(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_u32( [...] Content analysis details: (-0.2 points, 5.0 required) 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:52e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] -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 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.34 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> 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 |
[iwinfo,1/2] iwinfo: add support for indoor only chan restriction
|
expand
|
diff --git a/iwinfo.c b/iwinfo.c index ba4fc1e..85860e6 100644 --- a/iwinfo.c +++ b/iwinfo.c @@ -723,6 +723,9 @@ rpc_iwinfo_freqlist(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_u32(&buf, "mhz", f->mhz); blobmsg_add_u8(&buf, "restricted", f->restricted); + blobmsg_add_bool(&buf, "no_outdoor", f->restricted_flags & + IWINFO_FREQ_NO_OUTDOOR); + if (ch > -1) blobmsg_add_u8(&buf, "active", f->channel == ch);
A channel can declare restriction where it should be used only indoor. Export this restriction in the channel data. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> --- iwinfo.c | 3 +++ 1 file changed, 3 insertions(+)