aredn/patches/708-define-aredn-network-at...

72 lines
2.4 KiB
Diff
Raw Normal View History

--- 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|\
ubnt,nanostation-loco-m-xw|\
2020-02-25 22:15:15 -07:00
ubnt,picostation-m|\
+ ubnt,nanostation-m-xw|\
ubnt,rocket-m|\
ubnt,unifiac-lite|\
ubnt,unifiac-lr|\
@@ -65,7 +66,9 @@ ath79_setup_interfaces()
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|\
@@ -110,8 +113,9 @@ ath79_setup_interfaces()
tplink,tl-wr941nd-v6|\
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" \
@@ -129,7 +133,10 @@ ath79_setup_interfaces()
2020-02-25 22:15:15 -07:00
tplink,cpe220-v3|\
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|\
@@ -287,18 +294,21 @@ ath79_setup_interfaces()
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"
ucidef_add_switch "switch0" \
"0@eth0" "3:lan:1" "4:lan:2"
;;
+ 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"
+ ;;
*)
- 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
}