- Jun 17, 2018
-
-
Adrian Schmutzler authored
Occationally /proc/net/if_inet6 contains interface IDs with three digits. In this case, the regex in wait_for_ll_address() does not work anymore and alfred is not starting. This patch changes the evaluation so that fields are used instead of the mere position by counting characters. This is a backport from openwrt-routing and can be removed when updating to OpenWRT 18.06, but not for newer versions of 17.01. Fixes #98. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhgammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jun 15, 2018
-
-
Fabian Blaese authored
Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhgammer <rlanghammer@web.de>
-
Fabian Blaese authored
Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jun 11, 2018
-
-
Tim Niemeyer authored
Fixes #95 This reverts commit 6cc6b4b7. Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Acked-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Fixes #68 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Acked-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
- Mar 04, 2018
-
-
Robert Langhammer authored
Fixes #94 Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Mar 03, 2018
-
-
Adrian Schmutzler authored
In commit 5c1d3b1f, conditions were changed so that "wifi" is called almost every run directly before the network status (internet vs. gateway contact vs. wXsta). This causes strange effects configurehood and nodewatcher, which is called at the same time. The fix only does "wifi" if required and waits 10 sec. after that. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Fixes #83 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Just disable autoconf. Some sysctl's are currently not available due some missing kernel features. Maybe some day they reappear. Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Adrian Schmutzler authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
- Feb 13, 2018
-
-
Christian Dresel authored
The simplest and fasted way to Fixes #72 Signed-off-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Feb 10, 2018
-
-
Adrian Schmutzler authored
Code which is reused by other functionalities is put into the fff-hoodutils package, so it can be used without including configurehood. This also allows setting missing dependencies of other packages. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This addresses a bunch of issues: - Previously, only the presence of w2configap was checked. With only 5 GHz, this would have caused a recreation every 5 min. (Note that this is only valid for a 5 GHz only device, as we always create all interfaces for disabled radios) - The two outer if-statements are merged - We now check for presence of wXmesh to enable wXconfigap. Although this is no necessity (as the hood file contains the whole config) this assumes that a disabled wXmesh means no intent of the owner to connect to other devices on this radio. - With the dependency of wXconfigap from wXmesh, this patch now enables the deactivation of hood file transmitting by disabling meshing in the hood file Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jan 28, 2018
-
-
Adrian Schmutzler authored
Bug 1: If devices with hidden SSID are present, the matched SSID in the awk contains the newline (="unknown\n\t"). This destroys the table after the sort. Bug 2: If SSIDs contain ampersands (yes, people do that), they are now converted to &. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
The actual calculation is done in the Monitoring. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
- Jan 21, 2018
-
-
Tim Niemeyer authored
Fixes: #71 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Adrian Schmutzler authored
This adds data about the clients per interface Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Fabian Blaese authored
Since the reverted patch, device specific antenna gain is not set for some reason. Reverting the patch in question fixes this issue. THIS SHOULD BE ONLY CONSIDERD AS A TEMPORARY FIX UNTIL THE ISSUE IS FIXED PROPERLY! Fixes: #85 Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This is a workaround to enable alfred on routers which do not see a configap during initial boot. Fixes: #78 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
The AR150 seems to have the same MAC address on eth0, eth1 and phy0. Although it is not a ONEPORT, we can use the shifted bit like for the ONEPORT devices to get a distinct ETHMESHMAC. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Jan Kraus <mayosemmel@gmail.com>
-
- Jan 20, 2018
-
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
Instead of using the hiddenapflag file, we can just check whether the hood file copy used by the webserver is present. As a second condition, we check whether the w2configap is not configured yet. This fixes the following minor issue: Previously, if configurehood has run once, the hiddenapflag was set, but the configap not set up yet. If then a restart happens, the flag is gone (/tmp), but not recreated until a change in the hood file appears. Thus, no configap would be set up until that point. Since we check for a real condition now, this can't be happening. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
Changes: - Remove first line (headline) previously parsed as gateway - Delete leading whitespaces for netif correctly (regex "\\[" changed to "\\[ *") - Remove netif whitespaces first, so they are not changed to "false" - Include trailing whitespace in regex for selection marker - Remove useless replacement " " to " " This is designed to support BATMAN compatibility version 14 AND 15 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
If the mac is read from /sys/class/net/${iface}/address, some devices (WA860RE, Picostation) will not set the fdff addresses. This can be fixed by using the $ROUTERMAC in configurenetwork. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
Previously, IPv6 addresses were constructed by reading from the device config file in the function. To have more options, it is better to use the address itself as parameter. By this way we can decide what we use for getting the MAC when calling. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This is a cosmetical patch, however it does increase the overview a lot in my opinion. We cannot drop the special case of the two-port devices, because we need the current setup to enable setting port mode in the Web UI. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Christian Dresel authored
Add a complete hoodfile to /etc/hoodfile to use only this file Signed-off-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> - Changed according to Adrian's review Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jan 03, 2018
-
-
Adrian Schmutzler authored
After the remerge the LEDE git source is broken, thus we switch to the OpenWRT sources. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
- Dec 31, 2017
-
-
Adrian Schmutzler authored
This patch additional information to the nodewatcher XML: - wlan_channel: Channel of interface (number only) - wlan_ssid: SSID available through iw dev - wlan_type: Type of interface (AP, mesh, IBSS) - wlan_width: Width of frequency band (20 vs. 40 MHz, number only) The nodewatcher file from this patch can be copied manually to devices with older firmware. The patch includes some comment typo fixes. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
- Dec 23, 2017
-
-
Adrian Schmutzler authored
To prevent connecting hoods, this patch loads keyxchange files from the local network (eth0.3/eth0) before it uses the gateway. Thus, if other files are provided via wXconfigap, they are just ignored. If a router is connected to two hoods by cable, it will just disable the interfaces where a second hood file is detected and wait until the next call of configurehood. If cable and wXmesh are different, the cable has precedence. If two hoods are present via cable on the same eth, wXmesh has precedence. If two hoods are present via cable on different eth, the first eth has precedence and all others are disabled. If cable has precedence, wXmesh is configured with the hood file from cable. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
The configurehood script is started at the same time for all routers. Thus, if one router sets up its configap, another may just go into wXsta at the very same moment. This creates a race condition between configap setup and wXsta download. To circumvent this, we add a sleep to the wXsta routine, so the wXsta always comes later, but is still run every 5 minutes. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
Christian Dresel authored
This is the correct firmware for the Unifi AC Mesh I have only tested at Unifi AC Mesh and not at Unifi AC lite But my information is, that both have the same Hardware Signed-off-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Robert Langhammer authored
We need the new tunneldigger because the old broker no longer works with the current kernel. Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de>
-
Adrian Schmutzler authored
Since we change only the network part of uci, we only need to commit this part and not the whole config five times. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> - Rebased Signed-off-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-