2022-04-24 16:14:10 -06:00
|
|
|
--- a/target/linux/ath79/base-files/etc/board.d/02_network
|
|
|
|
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
|
|
|
|
@@ -58,6 +58,7 @@ ath79_setup_interfaces()
|
2020-02-25 22:15:15 -07:00
|
|
|
ubnt,nanostation-loco-m|\
|
2022-04-24 16:14:10 -06:00
|
|
|
ubnt,nanostation-loco-m-xw|\
|
2020-02-25 22:15:15 -07:00
|
|
|
ubnt,picostation-m|\
|
2020-01-22 18:37:27 -07:00
|
|
|
+ ubnt,nanostation-m-xw|\
|
|
|
|
ubnt,rocket-m|\
|
|
|
|
ubnt,unifiac-lite|\
|
|
|
|
ubnt,unifiac-lr|\
|
2022-04-24 16:14:10 -06:00
|
|
|
@@ -65,7 +66,9 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,unifi|\
|
|
|
|
wd,mynet-wifi-rangeextender|\
|
|
|
|
winchannel,wb2000)
|
|
|
|
- ucidef_set_interface_lan "eth0"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth0.1"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
;;
|
|
|
|
avm,fritz4020|\
|
|
|
|
pcs,cr3000|\
|
2022-04-24 16:14:10 -06:00
|
|
|
@@ -110,8 +113,9 @@ ath79_setup_interfaces()
|
|
|
|
tplink,tl-wr941nd-v6|\
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,airrouter)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
|
|
|
+ ucidef_set_interface "wifi" "ifname" "wlan0" "protocol" "static"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
- "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
+ "0@eth0" "4:lan:1" "3:lan:2" "2:lan:3" "1t:unused" "1t:dtdlink"
|
|
|
|
;;
|
|
|
|
buffalo,wzr-hp-g302h-a1a0)
|
|
|
|
ucidef_add_switch "switch0" \
|
2022-04-24 16:14:10 -06:00
|
|
|
@@ -129,7 +133,10 @@ ath79_setup_interfaces()
|
2020-02-25 22:15:15 -07:00
|
|
|
tplink,cpe220-v3|\
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,nanostation-m|\
|
|
|
|
ubnt,routerstation)
|
|
|
|
- ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
+ ucidef_set_interface_lan "eth0 eth1"
|
|
|
|
+ ucidef_set_interface_wan "eth0.1 eth1.1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2 eth1.2" protocol "static"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
;;
|
|
|
|
devolo,dvl1200e|\
|
|
|
|
devolo,dvl1750e|\
|
2022-04-24 16:14:10 -06:00
|
|
|
@@ -287,18 +294,21 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
;;
|
|
|
|
- ubnt,nanostation-m-xw)
|
|
|
|
- ucidef_add_switch "switch0" \
|
|
|
|
- "0@eth0" "5:lan" "1:wan"
|
|
|
|
- ;;
|
|
|
|
zbtlink,zbt-wd323|\
|
|
|
|
xiaomi,mi-router-4q)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
2020-02-22 20:54:58 -07:00
|
|
|
ucidef_add_switch "switch0" \
|
2020-01-22 18:37:27 -07:00
|
|
|
"0@eth0" "3:lan:1" "4:lan:2"
|
|
|
|
;;
|
2020-02-22 20:54:58 -07:00
|
|
|
+ glinet,gl-ar150)
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
*)
|
|
|
|
- ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth0.1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|