Message ID | 20220121000751.8905-2-ansuelsmth@gmail.com |
---|---|
State | Accepted |
Delegated to: | Ansuel Smith |
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=bPGZstnd; 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=p5GZ0Kaa; 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 4Jg0CQ6fFrz9t3b for <incoming@patchwork.ozlabs.org>; Fri, 21 Jan 2022 11:10:56 +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=dOTtMNrgLLpHLD09H3fL+Z070jtaaTxBB1oSfie/eF0=; b=bPGZstndEoPHZI xVOfJBFdeSOu60dU2PdCIssj0R5Q1WKlBDKf6KihzxmrpAvQiZZaGliBHL6J38YU+ekeBCNdb1o1k Qf5ChCUkhxWaQSIqxh6JQDBmUvjly7SnFHAh6R3nIzXl7OoNErRXmK6Dc6cnnLAqTUimuJP7g4jcF 5YpAMRM9ORYMGl8L3ED++4JuQzBrKzJ/j2dZxnmZb2PcFiqsfntVXlDjf4+8SB+KJUDvytTvHRPYg rD7X/Mlu2X1WtZ9bxo9/LRasRV6rJ6BcU4oAoOv1p2oduyOTK/1UbxI7Y9OKxLNpJjGvD5zkRwaut nyyF2E4ie8g5UVdm0FpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAhTU-00DQdA-6d; Fri, 21 Jan 2022 00:08:16 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAhTE-00DQb8-Di for openwrt-devel@lists.openwrt.org; Fri, 21 Jan 2022 00:08:01 +0000 Received: by mail-wm1-x32a.google.com with SMTP id q9-20020a7bce89000000b00349e697f2fbso25503957wmj.0 for <openwrt-devel@lists.openwrt.org>; Thu, 20 Jan 2022 16:07:56 -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=j8gpMHKY/5E16DWgI9xtc274wx3n/Gs/bjv3n4RQjT8=; b=p5GZ0KaaNxONGL8QMLxq/D8ipuSiJ+MRpnBHAcKFLCTburodmQUFjrZQjyYn2y9odU kZ4hAPBJlOY3Xdt80ulfgl3P95wz/PM7ltd90i+uQFGbdTBJPddle1gzngQZigo8vO8X 0EPKXrLKLv74Qqo6boEGXZSgYwmnZQeiWr8g+4KfE+cGGIW8okmtte239xg4aSLb7NYT nMuaSYw37q9Ba9agtOEOzqfFfZJ/hw21SJo5vHKUTp//yOXcLJ90CXJpxlBuO7xkBuVQ q3wJKbErvYGrZJ3JJzCa2QM1/UNc+BlOdxOcBhojaVe/IYoNIFse1Hze7PUNr/PIrAKl pATQ== 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=j8gpMHKY/5E16DWgI9xtc274wx3n/Gs/bjv3n4RQjT8=; b=4hcNth7uv2yJB+8Q/fkvR9cd/fl6PzZX+EIaKKVLRWioqeUhiCQuyM+b4gt4h+VDF7 O+5TYA3KbiXYqG0Dtcfguhf9vtyI3cOn9Xqi+XGti3Q7MAtZEyCXGRJh24MJ2sOAXQkn CoU7A8B38nFzYtI6iNuh0h/dPx/Oa1ePrfF6z82xH5BVXsC52Vlpp7y6iV5xwQuSLHkA N7srEJLOtCS7zTa6SxD4xdtAGsYKqOa680T8njjDbPsjrS5Yg+OcJSlsKN0ZceYIsJlR DIEhvajdXxK3EvgnzzEmLkdC3asK/0LdKQ+rT25OhNPUdtaS4FwbQs74GjMHobPRXDmZ UVgQ== X-Gm-Message-State: AOAM531MUbnHG0Ly36pLC2sDs76W9xqGEyBPJ8p/MO4KbBPWqOkK6jZ4 Gx86aMqsg9wfmuGCM5wY7kBvqohZHxE= X-Google-Smtp-Source: ABdhPJzc8LRq9ZytD082BR7rksfrRrAM33L/fqIpCMGJKDs1DSIWEM5YrlWWBdhrYiz/f94XjaPDxg== X-Received: by 2002:a5d:5143:: with SMTP id u3mr1328558wrt.714.1642723675159; Thu, 20 Jan 2022 16:07:55 -0800 (PST) Received: from localhost.localdomain (93-42-71-246.ip85.fastwebnet.it. [93.42.71.246]) by smtp.googlemail.com with ESMTPSA id x22sm3373980wmj.27.2022.01.20.16.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 16:07:54 -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 v2 PATCH 2/2] rpcd: iwinfo: export no_outdoor restriction Date: Fri, 21 Jan 2022 01:07:51 +0100 Message-Id: <20220121000751.8905-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220121000751.8905-1-ansuelsmth@gmail.com> References: <20220121000751.8905-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220120_160800_483486_698D372E X-CRM114-Status: UNSURE ( 9.71 ) 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 indoors. Export this restriction in the channel data. Signed-off-by: Ansuel Smith --- iwinfo.c | 3 +++ 1 file changed, 3 insertions(+) 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:32a 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,v2,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 indoors. Export this restriction in the channel data. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> --- iwinfo.c | 3 +++ 1 file changed, 3 insertions(+)