summaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/mt7622
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2024-01-16 23:19:02 +0800
committerChuanhong Guo <gch981213@gmail.com>2024-03-16 15:27:17 +0800
commitfc9bde82f34eb81f9f639f9da8dd7369651d871b (patch)
tree7544c74ef9ebcbe1d19b039cf411e3833255e65b /target/linux/mediatek/mt7622
parent7d1145ecb97b9c7f852714c7938771d80b2df4e8 (diff)
downloadopenwrt-fc9bde82f34eb81f9f639f9da8dd7369651d871b.tar.gz
openwrt-fc9bde82f34eb81f9f639f9da8dd7369651d871b.tar.bz2
openwrt-fc9bde82f34eb81f9f639f9da8dd7369651d871b.zip
mediatek: mt7622: simplify 02_network
Most mt7622 devices use the mt7531 switch, which have been switched to dsa driver for a long time. So use dsa as the default configuration and configure these rtl8367s devices separately. This reduces the amount of code. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux/mediatek/mt7622')
-rw-r--r--target/linux/mediatek/mt7622/base-files/etc/board.d/02_network21
1 files changed, 6 insertions, 15 deletions
diff --git a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
index 6c43e46222..6bda6e11f3 100644
--- a/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/mt7622/base-files/etc/board.d/02_network
@@ -8,19 +8,6 @@ mediatek_setup_interfaces()
local board="$1"
case $board in
- bananapi,bpi-r64|\
- buffalo,wsr-3200ax4s|\
- dlink,eagle-pro-ai-r32-a1|\
- elecom,wrc-x3200gst3|\
- linksys,e8450|\
- linksys,e8450-ubi|\
- mediatek,mt7622-rfb1|\
- mediatek,mt7622-rfb1-ubi|\
- netgear,wax206|\
- reyee,ax3200-e5|\
- ruijie,rg-ew3200gx-pro)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
- ;;
buffalo,wsr-2533dhp2)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
@@ -28,6 +15,11 @@ mediatek_setup_interfaces()
dlink,eagle-pro-ai-m32-a1)
ucidef_set_interfaces_lan_wan "lan1 lan2" wan
;;
+ elecom,wrc-2533gent|\
+ totolink,a8000ru)
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
+ ;;
ubnt,unifi-6-lr*)
ucidef_set_interface_lan "eth0"
;;
@@ -35,8 +27,7 @@ mediatek_setup_interfaces()
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan
;;
*)
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
;;
esac
}