[PATCH] ath79: consistent network configuration of 2-port APs

Thibaut VARÈNE hacks at slashdirt.org
Wed May 4 02:04:23 PDT 2022


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 <hacks at slashdirt.org>
---
 .../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 at 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 at eth0" "1:wan" "2:lan"
-- 
2.24.3 (Apple Git-128)




More information about the openwrt-devel mailing list