Commit Graph

3 Commits

Author SHA1 Message Date
Adrian Schmutzler 70873b58fe fff-network: use upstream function to set local bit
OpenWrt provides a function to set the local-bit in IP addresses.

This removes our custom function macFlipLocalBit() and switches to
the upstream version.

Note that technically the upstream version _sets_ the local bit,
i.e. only works one way, while our version _toggled_ the status.

Since we always start from addresses without the local bit set,
this is irrelevant for the given cases, though.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-09 23:09:31 +01:00
Adrian Schmutzler cb4bce7cc2 fff-network: move PORTORDER to function/library
So far, we define PORTORDER individually in each network.* file.
This creates a lot of duplications, and makes the code to parse those
values very ugly (and it's only used outside of configurenetwork
anyway).

Therefore, move the assignment to a library file, and wrap it into
a function for tidyness. This gives us more overview and nicer
implementation of the retrieval.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Christian Dresel <freifunk@dresel.systems>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
2021-02-09 22:37:20 +01:00
Fabian Bläse ce4146cf4a mt7621: Add support for Netgear R6220
The factory image can either be flashed via the vendor WebUI or
the bootloader using nmrpflash.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-20 14:30:39 +02:00