firmware/src/packages/fff/fff-network
Adrian Schmutzler c22032e254 fff-network: support native two-port devices
Support native two-port devices by adding TWO_PORT variable and
exploiting the LAN0PORT and LAN1PORT variables designed for the
TP-Link CPE devices. Since the latter have been converted to
real two-port devices, we can now repurpose these variable for
the new setup.

This exploits the existing WANDEV and SWITCHDEV variables to
define the primary and secondary interfaces.

Note that by default this takes the initial values from network.mode,
so if initial WAN/CLIENT should swapped, this has to be added to
the relevant network.* file of the devices.

No device-specific changes are done in this patch.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
2021-07-09 10:04:10 +02:00
..
arm treewide: exploit label MAC address from OpenWrt 2021-06-08 20:08:20 +02:00
files fff-network: support native two-port devices 2021-07-09 10:04:10 +02:00
mips ath79: implement both versions of ubnt,bullet-m 2021-06-08 20:15:30 +02:00
mipsel treewide: exploit label MAC address from OpenWrt 2021-06-08 20:08:20 +02:00
powerpc treewide: exploit label MAC address from OpenWrt 2021-06-08 20:08:20 +02:00
Makefile fff-network: support native two-port devices 2021-07-09 10:04:10 +02:00