From ceebe6d8ba4dbd5242401d8fada4987a06dfc160 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 1 Jan 2021 17:23:04 -0500 Subject: [PATCH] ath79: make all eth ports LAN for Engenius APs for: - ENH202 v1 - ENS202EXT v1 - EnstationAC v1 - EWS511AP For EWS511AP, have default behavior as static ip to match the behavior of all other APs in ath79 These boards are sold as Client Bridge or Point to Point or Access Point so there is probably no benefit to have WAN by default for one of the ports, to prevent user confusion. Signed-off-by: Michael Pratt Signed-off-by: maurerr --- .../linux/ath79/generic/base-files/etc/board.d/02_network | 7 +++---- target/linux/ath79/tiny/base-files/etc/board.d/02_network | 2 +- 2 files changed, 4 insertions(+), 5 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 135c5ad3272..ab00d798b19 100755 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -108,6 +108,8 @@ ath79_setup_interfaces() alfa-network,n5q|\ devolo,dvl1200e|\ devolo,dvl1750e|\ + engenius,enstationac-v1|\ + engenius,ews511ap|\ ocedo,ursus|\ ubnt,unifi-ap-outdoor-plus) ucidef_set_interface_lan "eth0 eth1" @@ -236,13 +238,10 @@ ath79_setup_interfaces() "0@eth0" "1:wan" "2:lan:3" "3:lan:2" ;; engenius,ens202ext-v1) - ucidef_set_interface_wan "eth1" + ucidef_set_interface_lan "eth1" ucidef_add_switch "switch0" \ "0@eth0" "1:lan" ;; - engenius,ews511ap) - ucidef_set_interface_lan "eth0 eth1" "dhcp" - ;; etactica,eg200) ucidef_set_interface_lan "eth0" "dhcp" ;; diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/02_network b/target/linux/ath79/tiny/base-files/etc/board.d/02_network index ce95bf70370..cca63520237 100755 --- a/target/linux/ath79/tiny/base-files/etc/board.d/02_network +++ b/target/linux/ath79/tiny/base-files/etc/board.d/02_network @@ -54,7 +54,7 @@ ath79_setup_interfaces() ucidef_set_interface_lan "eth0" ;; engenius,enh202-v1) - ucidef_set_interface_wan "eth0" + ucidef_set_interface_lan "eth0" ucidef_add_switch "switch0" \ "0@eth1" "4:lan:1" ;;