mirror of https://github.com/aredn/aredn.git
69 lines
2.3 KiB
Diff
69 lines
2.3 KiB
Diff
|
Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
|
||
|
===================================================================
|
||
|
--- openwrt.orig/target/linux/ath79/base-files/etc/board.d/02_network
|
||
|
+++ openwrt/target/linux/ath79/base-files/etc/board.d/02_network
|
||
|
@@ -38,6 +38,7 @@ ath79_setup_interfaces()
|
||
|
ubnt,lap-120|\
|
||
|
ubnt,nanobeam-ac|\
|
||
|
ubnt,nanostation-ac-loco|\
|
||
|
+ ubnt,nanostation-m-xw|\
|
||
|
ubnt,rocket-m|\
|
||
|
ubnt,unifiac-lite|\
|
||
|
ubnt,unifiac-lr|\
|
||
|
@@ -45,7 +46,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|\
|
||
|
@@ -80,8 +83,9 @@ ath79_setup_interfaces()
|
||
|
tplink,tl-wr842n-v3|\
|
||
|
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" \
|
||
|
@@ -91,7 +95,10 @@ ath79_setup_interfaces()
|
||
|
comfast,cf-e120a-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|\
|
||
|
@@ -252,10 +259,6 @@ 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"
|
||
|
@@ -263,7 +266,9 @@ ath79_setup_interfaces()
|
||
|
"0@eth0" "3:lan:1" "4:lan:2"
|
||
|
;;
|
||
|
*)
|
||
|
- 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
|
||
|
}
|