From patchwork Fri Feb 11 09:46:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enrico Mioso X-Patchwork-Id: 1591553 Return-Path: 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=iyLqrwVp; 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=g5T9f4o4; 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=) 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 4Jw82969C6z9s5B for ; Fri, 11 Feb 2022 20:48:33 +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: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:In-Reply-To:References: List-Owner; bh=2630rISoF6wbX/baOLGWXy420ARfxw4ctHx/Lxlw0tw=; b=iyLqrwVprns7LY hhn6NhQrhhsqNL2kO3JgavajaU/kYoBREwGAeKUbGwzLkZCg7VwNXuAM7rmY2Gbdo5E/V77gzUUP7 WRFpqHFc7rmO3DrK0L0IGHE/+WbgQnQygOYEMbsw3S5V7dJrzYwFom8ulw7oFx1JuV45pg4IQswqK YcymVqH05uDs3fgnnp+ivVKiXtMRo+yd8W0aulMCW7ojUeoIAo3Vug2SnuGc1RMkV7oGykdwL6lM1 WzpUt85ixe3jmvfK+SQmAKRYZmEOPruimmFiBiLaE46MZZON1K8lTlOCEjXHciCsTEwJoKAaNaVlc AAMDEV7eHmwalkipAuRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nISVM-006T5X-3S; Fri, 11 Feb 2022 09:46:16 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nISVI-006T4L-SS for openwrt-devel@lists.openwrt.org; Fri, 11 Feb 2022 09:46:14 +0000 Received: by mail-ej1-x631.google.com with SMTP id u20so17337080ejx.3 for ; Fri, 11 Feb 2022 01:46:12 -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:mime-version :content-transfer-encoding; bh=ePaCpE61sBpBKCyyBhv/u04I/aYLo1Wn2LB4qCxzf/g=; b=g5T9f4o4cl0pTBtrUU73yJdZvYgR8kb1yZofyjoFO2TANruD/Hn8aHDIDAR4JdJlaw yOGjTWjQ5UsV1/TrxUvbBppVz76wYrF2vJ5Qu1ZzmsYwEBFry0EgTu7Nnwc0g8TYHQ9q 6SJejY3bGlGrKRoDdvr8OdlOGjJgJnIPATG4bTNErFne2pSgn3ZrCZaurEyEevlRpksp rfry4v74hCGCbkEEfqR8U26tve6ULjXATCto4WRzrtHmfXY4gQL7j8oUg6hvCGHMjb/C qpm/7mrVpSAtL2anBd/HtWsnEuvWGcRn88d9DFqKHUA/vbStVXcjMRnMT1mvqhTYVOl9 o+rQ== 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:mime-version :content-transfer-encoding; bh=ePaCpE61sBpBKCyyBhv/u04I/aYLo1Wn2LB4qCxzf/g=; b=pltfhH2zmrbQ+845H4zKeCFs17e7+1UD7a45E/J9CJyup79O5TAaEFQcYrnsElavwO u+voPyb+qu5bxVNS86Au+YtAP6JgUZtAV3EAjBPVthUi/TolxTIz4mnknO/4YwhyCBLo SztOi/LmCjKGl55S6By9hf9HyTEmKHSnr+AJcQdEIpe71r7BPL2oGUCVByeDnHnD6K7c tyBLGenvSRS3lN75SERLMCdfHbThCY0+Ap1Y0NkABmjgijA5wZVb/K4mPomXgviDfoHp zIFSErETR1DHwpFy0b5AbGCb/SUO0E/slcNgy09NwJoHBcpg40aiP9/2oAcWjwztk8Ie fzvA== X-Gm-Message-State: AOAM532h9+BB4uPLjBLDgxPsegydBrYPrgyQQyNi65HxyRN3XmNG8kRn +Yrj2rlGoW4k5NB0OuKRlE8uIDNF3mQ= X-Google-Smtp-Source: ABdhPJwkh3IidmxwmLr2JHNW8RpTISVQ82dxIXQLMehoH6NRWu+zn69R0IjZzI394ie2dyYd3kK/yg== X-Received: by 2002:a17:907:3d9e:: with SMTP id he30mr644060ejc.625.1644572770880; Fri, 11 Feb 2022 01:46:10 -0800 (PST) Received: from localhost.localdomain (h17-ipv4-77-240-224.mynet.it. [77.240.224.17]) by smtp.gmail.com with ESMTPSA id dc8sm5328826ejb.213.2022.02.11.01.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 01:46:10 -0800 (PST) From: Enrico Mioso To: openwrt-devel@lists.openwrt.org Cc: Enrico Mioso Subject: [PATCH] ipq40xx: limit available radio channels for GL.iNet GL-B2200 Date: Fri, 11 Feb 2022 10:46:00 +0100 Message-Id: <20220211094600.1483209-1-mrkiko.rs@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_014612_940629_F1210982 X-CRM114-Status: UNSURE ( 9.34 ) 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: The PCIe and built-in 5GHZ radios are meant to operate on different frequency bands. The hardware enforces this via RF filters. Add this information to allow software enforcing it as well. Credits to [...] 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:631 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 [mrkiko.rs[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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The PCIe and built-in 5GHZ radios are meant to operate on different frequency bands. The hardware enforces this via RF filters. Add this information to allow software enforcing it as well. Credits to Piotr Dymacz for the invaluable help. Signed-off-by: Enrico Mioso --- Also due to the nature of this patch, testing it might not be easy. Still, applying it shoudn't cause issues, as the only uncertainty is whether we will need to stricter the limits. So I think this should go in. --- .../ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts index 243dcb84d6..754af7c820 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts @@ -367,6 +367,7 @@ nvmem-cell-names = "calibration"; nvmem-cells = <&cal_art_9000>; qcom,ath10k-calibration-variant = "GL-B2200"; + ieee80211-freq-limit = <5450000 5900000>; }; }; }; @@ -383,4 +384,5 @@ nvmem-cell-names = "pre-calibration"; nvmem-cells = <&precal_art_5000>; qcom,ath10k-calibration-variant = "GL-B2200"; + ieee80211-freq-limit = <5100000 5400000>; };