ipq40xx: add Linksys MR8300 WAN port

This makes the WAN interface and port appear in
LuCi -> Network -> Switch on Linksys MR8300.
This allows to configure a VLAN on WAN.

Fixes: FS#4227

Signed-off-by: Julien Cassette <julien.cassette@gmail.com>
(cherry picked from commit 2c1f8a665e)
This commit is contained in:
Julien Cassette 2022-01-17 19:41:32 +01:00 committed by Petr Štetiar
parent 69ea8afaea
commit cd7e6c8a81

View File

@ -57,12 +57,16 @@ ipq40xx_setup_interfaces()
;; ;;
avm,fritzbox-4040|\ avm,fritzbox-4040|\
linksys,ea6350v3|\ linksys,ea6350v3|\
linksys,ea8300|\ linksys,ea8300)
linksys,mr8300)
ucidef_set_interfaces_lan_wan "eth0" "eth1" ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
;; ;;
linksys,mr8300)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_add_switch "switch0" \
"0u@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "0u@eth1" "5:wan"
;;
avm,fritzbox-7530) avm,fritzbox-7530)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0u@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0u@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"