https://dev.openwrt.org/ticket/20757#ticket
https://forum.openwrt.org/viewtopic.php?pid=300231#p300231
https://wiki.openwrt.org/toh/tp-link/tl-wr841nd
1.- Install packages relayd package and luci-proto-relay package
System > Software
2.- Join to existent wifi network
Network > Wifi > Scan > Join Network
- Name: wwan
- Create / Assign firewall-zone: unspecified -or- create: wwan
- Save and apply
- Check the router is conected now to the existent wifi
3.- Create the repeater wifi network
Network > Wifi > Add
- ESSID: name you want for the repeater network
- Mode: Access Point
- Network: lan
- Save and apply
4.- Create the relay bridge
Network > Interfaces > Add new Interface
- Name: statbridge
- Protocol: Relay Bridge
- Submit
- Relay between networks: check lan and wwan
- Save and apply
5.- Allow wwlan on firewall
Network > Firewall
- Edit lan zone
- Check wwan on "Allow forward to destination zones"
6.- Allow SSH on wwan
System > Administration
- Mark second dropbear instance on wwan
- In addition, dropbear starts before the wwan interface, so no ssh for wwan. To fix this, connect by ssh and:
cat <<EOF > /etc/hotplug.d/iface/40-dropbear
#!/bin/sh
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
/etc/init.d/dropbear reload
logger -t firewall "Reloading dropbear due to $ACTION of $INTERFACE ($DEVICE)"
EOF
chmod +x /etc/hotplug.d/iface/40-dropbear
https://wiki.openwrt.org/doc/recipes/relayclient
http://trac.gateworks.com/wiki/OpenWrt/wireless/relayd
1.- Join to existent wifi network
Network > Wifi > Scan > Join Network
- Create / Assign firewall-zone: wan
- Save and apply
- Check the router is conected now to the existent wifi
2.- Create the repeater wifi network
Network > Wifi > Add
- ESSID: name you want for the repeater network
- Mode: Access Point
- Network: lan
- Save and apply