- 21 Sep, 2021 4 commits
-
-
Roger Pueyo Centelles authored
On first boot call qmp_configure_smart_network() with force parameter, and add to phydevs OpenWrt's default LAN and WAN interfaces, which may not be detected as physical interfaces in some corner cases. Fixes #489. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Add the qmp_uci_get_raw_item_space_filter_by_name() function to complete the qmp_uci_get_item_by_unnamed_section_type_and_name() function, which would otherwise incorrectly return the items for all the unnamed sections of a given class, instead of just the one filtered by its "name" property value. Fixes #489. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 20 Sep, 2021 5 commits
-
-
Roger Pueyo Centelles authored
Adapt qmp_get_openwrt_default_network() to work with both pre-UCI model change and post. Partial fix for #489 Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
With commit 892fc7caa9eee9f5ef9e172677f871c02841bae8 OpenWrt introduced a new model for the br-lan device. For instance, it is split between a device and an interface. This commit adapts the configuration of wired interfaces to the new UCI-based model. Partial for #489 Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
The qmp_log function blocks if no argument is sent. For instance, qmp_log $(qmp_get_wifi_devices) would block if qmp_get_wifi_devices would return empty. Putting it into quotes does the trick: qmp_log "$(qmp_get_wifi_devices)" Fixes #492 Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
The qmp_get_openwrt_default_network function stopped working since OpenWrt commit 892fc7caa9eee9f5ef9e172677f871c02841bae8, as parsing the board.json wouldn't provide the defaults anymore. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
With commit 892fc7caa9eee9f5ef9e172677f871c02841bae8 OpenWrt introduced a new model for the br-lan device. The "bridge" type is now defined on the new "br-lan" device, and the addresses, etc. are assigned to the 'lan' interface. Partial fix for #489 Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 01 May, 2021 3 commits
-
-
Roger Pueyo Centelles authored
This modifies the qmp_configure_smart_network() function so that it can handle wired devices with a managed switch using the new DSA driver properly. Fixes #482. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
In some corner cases, function qmp_get_dec_node_id() would throw an error when asking for the MAC address of a missing interface, and then printing the LSBs in decimal number. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 08 Dec, 2020 4 commits
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 07 Dec, 2020 2 commits
-
-
Roger Pueyo Centelles authored
Look for wireless devices in /proc/net/wireless (legacy code), then under /sys/class/net (sometimes slow to provide info), via ubus (fix #481) and also get the configured devices in /etc/config/wireless. This should finally make rescue IPv4 addresses stop appearing in br-lan. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Some devices (e.g., ath79 MikroTik) have their MAC addresses configured via /etc/config/network in "Xan_ethN_dev" device sections (e.g., lan_eth0_dev"). When removing old network settings, to not remove MAC address settings. Fixes #485. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 07 Jul, 2020 3 commits
-
-
Roger Pueyo Centelles authored
Continues 7c75474e, cb7fd04423ce05fa64b96efb6667421b33bf100c, 6c5212f1 and b45499e1 . Fixes #481. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Still with #481, for some devices, qmp_get_wifi_devices() reports less devices than actually present. Add an additional source of devices and some verbosity. Continues cb7fd04423ce05fa64b96efb6667421b33bf100c, 6c5212f1 and b45499e1 . Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Continues 6c5212f1 and b45499e1 . Still some devices that take extremely long to initialize the wifi seem to put mesh wlan0 in the lan bridge. Add some verbosity and an additional check. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 06 Jul, 2020 2 commits
-
-
Roger Pueyo Centelles authored
Continues b45499e1 . Still, for some devices, wlan0 is not considered to be a wifi device. Add an additional check for that. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
On first boot, routers with a single 2.4 GHz radio had it auto- configured as 80211s_aplan, with interface wlan0 as 80211s and wlan0ap as AP. However, the wlan0 interface was wrongly considered as being inside the virtual interface (viface) "lan" instead of "mesh_w0". This was a corner case in the qmp_get_virtual_iface() function, which ultimately made rescue_ip 169.254.x.y to be incorrectly assigned to "br-lan" instead of "mesh_w0". Fixes #481. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 05 May, 2020 1 commit
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 04 May, 2020 8 commits
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Filter wireless devices ending in "a" (for compat. adhoc+802.11s mode) and also those ending in "ap" (for mesh+ap or adhoc+ap) to avoid getting wlan0-wlan0ap turning into wlan0ap-wlan0apap. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
It has been restarted immediately before. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 30 Apr, 2020 1 commit
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 29 Apr, 2020 1 commit
-
-
Roger Pueyo Centelles authored
LuCI recently implemented ACL for RPCD. This commit allows qMp LuCI pages to have full access to configuration files in /etc/config. It is meant to be a quick fix for #480, hoping for a proper solution to be implemented. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 21 Feb, 2020 2 commits
-
-
Roger Pueyo Centelles authored
Now the CN mesh name can be prepended ad lib to the hostname. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
The device_id field is now properly managed for both public and natted, and appended ad lib. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 20 Feb, 2020 2 commits
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Closes #461 Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
- 20 Jan, 2020 2 commits
-
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-
Roger Pueyo Centelles authored
Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net>
-