Hardware TP-Link WA850RE added

Der TP-Link WA850RE ist von der Hardware baugleich mit dem WA860RE somit
wurde die Konfiguration zu größten Teilen kopiert. Der einzige
Unterschied ist der, das der Router keinen Durchgang für den Strom hat
und somit eine Steckdose blockiert.

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Christian Dresel 2016-01-17 20:56:19 +01:00 committed by Tim Niemeyer
parent 5ca5ce632e
commit eb8e23e932
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,32 @@
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS=""
WAN_PORTS=""
BATMAN_PORTS=""
. /etc/network.mode
CLIENTIF="w2ap"
ETHMESHMAC=
ROUTERMAC=w2mesh
uci set network.$SWITCHDEV=interface
uci set network.$SWITCHDEV.ifname=$SWITCHDEV
uci set network.mesh.ifname="bat0"
if [ "$ETHMODE" = "WAN" ] ; then
## Activate for WAN:
echo "net.ipv6.conf.$WANDEV.accept_ra_defrtr = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.$WANDEV.accept_ra_pinfo = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.$WANDEV.autoconf = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.$WANDEV.accept_ra_rtr_pref = 1" >> /etc/sysctl.conf
uci set network.wan.ifname=$WANDEV
elif [ "$ETHMODE" = "CLIENT" ] ; then
## Activate Client:
CLIENTIF="w2ap eth0"
uci set network.mesh.ifname="bat0 $SWITCHDEV"
else
## Activate BATMAN:
uci set network.ethmesh.ifname="$SWITCHDEV"
ETH0MAC=1
fi

View File

@ -28,6 +28,7 @@ board_postbuild() {
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-*.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wa860re-v1-squashfs-*.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wa850re-v1-squashfs-*.bin ./bin/
}
board_clean() {

View File

@ -23,6 +23,9 @@ case "$BOARD" in
nanostation-m)
BOARD=ubnt-nano-m
;;
tl-wa850re)
BOARD=tl-wa850re-v1
;;
tl-wa860re)
BOARD=tl-wa860re-v1
;;