aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/base-files/etc
diff options
context:
space:
mode:
authorMark Mentovai <mark@mentovai.com>2021-11-11 12:24:24 -0500
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-19 22:58:12 +0200
commit9a8e008188a11813a90b77ba32d24c0cca225bf9 (patch)
tree31d5b1470953114b8728ce0faa2ef60f38efcdd2 /target/linux/ipq40xx/base-files/etc
parent48bb71ff280e2d3cd97c7a48b0d17c209ae6a36c (diff)
downloadupstream-9a8e008188a11813a90b77ba32d24c0cca225bf9.tar.gz
upstream-9a8e008188a11813a90b77ba32d24c0cca225bf9.tar.bz2
upstream-9a8e008188a11813a90b77ba32d24c0cca225bf9.zip
ipq40xx: Convert mikrotik,wap-ac to DSA
As done previously, this preserves the MAC addresses of they physical Ethernet ports. The interfaces are renamed as eth0 is in use for the native GMAC; the new interface naming matches the physical port labels. - sw-eth1 corresponds to the physical port labeled ETH1 and has the base MAC address. This port can be used to power the device. - sw-eth2 corresponds to the physical port labeled ETH2 and has a MAC address one greater than the base. As this device has 2 physical ports, they are each connected to their respective PHYs, allowing the link status to be visible to software. Since they are not marked on the case with any role (such as LAN or WAN), both are bridged to the lan network by default, although this can easily be changed if needed. Signed-off-by: Mark Mentovai <mark@mentovai.com>
Diffstat (limited to 'target/linux/ipq40xx/base-files/etc')
-rw-r--r--target/linux/ipq40xx/base-files/etc/board.d/02_network7
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network
index 1089a7f3f8..36f1f7c24a 100644
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
@@ -52,11 +52,14 @@ ipq40xx_setup_interfaces()
cellc,rtl30vw)
ucidef_set_interface_lan "lan1 lan2"
;;
+ compex,wpj428)
+ ucidef_set_interface_lan "lan1 lan2"
+ ;;
glinet,gl-b1300)
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
;;
- compex,wpj428)
- ucidef_set_interface_lan "lan1 lan2"
+ mikrotik,wap-ac)
+ ucidef_set_interface_lan "sw-eth1 sw-eth2"
;;
zte,mf286d)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" "wan"