Use per-band counters and band-specific indices when rendering SSID
sections to avoid unnecessary wifi restarts on other bands when an
SSID is removed.
Signed-off-by: Venkat Chimata <venkat@nearhop.com>
Previously, no_reconf was unconditionally set to true for all PHYs,
forcing wireless reloads to take the teardown path regardless of
whether the underlying radio supported reconfiguration.
Update the renderer to derive no_reconf from the radio’s reconf
capability instead. When the board information indicates that the
radio supports reconfiguration, no_reconf is now set to false,
allowing hot reload to proceed without a full driver teardown.
This aligns renderer behavior with actual hardware capabilities and
restores expected hot reload behavior on platforms that support it.
Signed-off-by: Venkat Chimata <venkat@nearhop.com>
Replace band-specific hardcoded valid_channels lists with phys[0].channels
which is already filtered by the driver based on hardware capabilities and
regulatory domain. Remove invalid channels (173, 184, 192) from the 40MHz
channel_list. Add filter in template to skip channels not in phy.channels.
Tested on: CIG WF189, EdgeCore eap105, CIG WF189H
Signed-off-by: Marek Hajduczenia <mxh@rgnets.com>
The devstats variable is populated via ubus call to udevstats dump,
which returns null when the udevstats service is unavailable. Add a
null check before indexing into devstats to prevent a runtime crash.
Signed-off-by: Lannar Dean <moracca@gmail.com>
Add -L flag to curl download command to automatically follow HTTP
redirects when downloading firmware images. This ensures that upgrade
operations work correctly when the firmware URI returns a redirect
response (e.g., 301, 302).
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
- Disable generate_psk by default to prevent issues with PSK roaming on VLANs
- Set message_exchange to 'ds' for SAE/WPA3 RADIUS roaming
Signed-off-by: John Crispin <john@phrozen.org>
Fix potential exception in state.uc (NOTE: udevmand *was* running during this)
root@d4babaa310c8:~# /usr/share/ucentral/state.uc
Reference error: left-hand side expression is null
In /usr/share/ucentral/state.uc, line 1020, byte 35:
` state.counters = ports[iface].counters;`
Near here ------------------------------------^
Signed-off-by: Lannar Dean <ldd@rgnets.com>
creating a meshpoint interface with no batman-adv tunnel being present generates
an invalid configuration.
Signed-off-by: Aditya-Rai-25 <aditya21.rai@routerarchitects.com>
Since PSE Power on/off Control needs to be done through the ucentral config file, multiple config nodes and corresponding ucodes have been added.
Poe is placed under the ethernet node.
Fixes: WIFI-14724
Signed-off-by: jackcybertan <jack.tsai@cybertan.com.tw>
This implements secure download by adding additional fields to the
upgrade command payload:
- use-local-certificates (boolean): When provided, enables secure download
and if true uses built-in certificates, if false requires below fields
- ca-certificate (string): base64 encoded cas.pem
- certificate (string): base64 encoded cert.pem
- private-key (string): base64 encoded key.pem
The following additional changes are included:
- Switches from wget to curl for downloading as curl supports using
certificates and in general seems more reliable
- An automatic download retry was added before reporting the failure
- When download fails, provides both exit code & http code to the cloud
Fixes: WIFI-14643
Signed-off-by: Paul White <paul@shasta.cloud>
1. Extend ucentral schema & state for HaLow
2. Refine "system" into "sysinfo" to avoid confliction with system trace in state.uc
Fixes: WIFI-14436
Signed-off-by: Ian Chen <ian77_chen@accton.com>
Use same keyword "dhcp-inject" in config file in both services and interfaces->ssids->services
Fixes: WIFI-14573
Signed-off-by: alex18_huang <alex18_huang@accton.com>