From patchwork Wed May 4 09:04:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thibaut X-Patchwork-Id: 1626184 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=4Tr17DZB; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=slashdirt.org header.i=@slashdirt.org header.a=rsa-sha256 header.s=mail header.b=uB97sZs/; 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KtWDZ6SC2z9sG2 for ; Wed, 4 May 2022 19:07:10 +1000 (AEST) 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=yPLb1GsOck6WBqdypXScXuX0kCwEN7t8ryOBbYQ7R+E=; b=4Tr17DZB30NBCx KkurMY2MluX1MwVC0/cZP2qici8Z9BEOXnAwD3iVtUVa0+ojdsEcFubex8d77AwgqXhXH+H0LgukR infP3BsIAltoslxLN8aHxRVrkvJXx3YRxqm+itmxkRZGXFahY04985O46X0uxfvkQla0b/4/v4e1i 3NFrSbtuaJQcB+wIuA2ACTSby54vvonjhyTaOj76qDgg1fAefaTPpYSoJZ27E3kx+j/0EuOmRtDGz VYfngmyqspPiejqSj06GT6e/vEx24Q+zgupMR0Ih9oTd6PeKsbMC6QqJ2l0SuBIE4jabqc5hmW0yq 7mN7suQmxdckhWGF1obg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmAwG-009hXg-8I; Wed, 04 May 2022 09:04:52 +0000 Received: from vps.slashdirt.org ([144.91.108.218]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmAwC-009hVS-10 for openwrt-devel@lists.openwrt.org; Wed, 04 May 2022 09:04:50 +0000 Received: from Chuck.tardis.lan (tardis.herebedragons.eu [171.22.3.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by vps.slashdirt.org (Postfix) with ESMTPSA id BA8E4600E5; Wed, 4 May 2022 11:04:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 vps.slashdirt.org BA8E4600E5 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=slashdirt.org; s=mail; t=1651655079; bh=YHCCyLAyKdyldDbeUC8V4Apufu2KCYRzlzeFITFP1kI=; h=From:To:Cc:Subject:Date:From; b=uB97sZs/AZRIO4U1tkhUi3NHPcU6N32bCEBtayZHm/LknLA5SbMnulnNo0pLT2Moc VDf4vYJDQZUSOSrVB90RQws60gxLtTCTx0auMC5iBrB4m5oQ0TgE4dpgSBxHegbNXB u+5nr74t7mT6pc1NY6BZ1AVLB61WuhpItqTpa5Rw= From: =?utf-8?q?Thibaut_VAR=C3=88NE?= To: openwrt-devel@lists.openwrt.org Cc: rafal@milecki.pl, =?utf-8?q?Thibaut_VAR=C3=88NE?= Subject: [PATCH] ath79: consistent network configuration of 2-port APs Date: Wed, 4 May 2022 11:04:23 +0200 Message-Id: <20220504090423.13896-1-hacks@slashdirt.org> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_020448_549922_969AE847 X-CRM114-Status: UNSURE ( 9.66 ) 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: In ath79 we have two groups of indoor/outdoor 2-port APs: one where both ports are assigned to the lan interface, and one where an arbitrarily chosen port is assigned to the wan interface. From a look at the device pictures, it seems none of them make that distinction on their casing, so this patch moves the second group in line with the first. Content analysis details: (0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.4 NO_DNS_FOR_FROM RBL: Envelope sender has no MX or A DNS records [listed in slashdirt.org. IN A] -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_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 In ath79 we have two groups of indoor/outdoor 2-port APs: one where both ports are assigned to the lan interface, and one where an arbitrarily chosen port is assigned to the wan interface. From a look at the device pictures, it seems none of them make that distinction on their casing, so this patch moves the second group in line with the first. Signed-off-by: Thibaut VARĂˆNE --- .../generic/base-files/etc/board.d/02_network | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index a4eb2ae06b..dede15a924 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -124,11 +124,32 @@ ath79_setup_interfaces() ;; alfa-network,n2q|\ alfa-network,n5q|\ + comfast,cf-e110n-v2|\ + comfast,cf-e120a-v3|\ + comfast,cf-e314n-v2|\ + compex,wpj531-16m|\ devolo,dvl1200e|\ devolo,dvl1750e|\ engenius,enstationac-v1|\ engenius,ews511ap|\ ocedo,ursus|\ + openmesh,a40|\ + openmesh,a60|\ + openmesh,om2p-v1|\ + openmesh,om2p-v4|\ + openmesh,om2p-hs-v4|\ + plasmacloud,pa300|\ + plasmacloud,pa300e|\ + tplink,cpe210-v1|\ + tplink,cpe220-v2|\ + tplink,cpe220-v3|\ + tplink,cpe510-v1|\ + tplink,wbs210-v1|\ + tplink,wbs210-v2|\ + tplink,wbs510-v1|\ + tplink,wbs510-v2|\ + ubnt,nanostation-m|\ + ubnt,routerstation|\ ubnt,unifi-ap-outdoor-plus) ucidef_set_interface_lan "eth0 eth1" ;; @@ -193,29 +214,6 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan" ;; - comfast,cf-e110n-v2|\ - comfast,cf-e120a-v3|\ - comfast,cf-e314n-v2|\ - compex,wpj531-16m|\ - openmesh,a40|\ - openmesh,a60|\ - openmesh,om2p-v1|\ - openmesh,om2p-v4|\ - openmesh,om2p-hs-v4|\ - plasmacloud,pa300|\ - plasmacloud,pa300e|\ - tplink,cpe210-v1|\ - tplink,cpe220-v2|\ - tplink,cpe220-v3|\ - tplink,cpe510-v1|\ - tplink,wbs210-v1|\ - tplink,wbs210-v2|\ - tplink,wbs510-v1|\ - tplink,wbs510-v2|\ - ubnt,nanostation-m|\ - ubnt,routerstation) - ucidef_set_interfaces_lan_wan "eth1" "eth0" - ;; comfast,cf-e375ac) ucidef_add_switch "switch0" \ "0@eth0" "1:wan" "2:lan"