948 Commits

Author SHA1 Message Date
Venkat Chimata
8491119c93 renderer: make SSID naming band-aware for stable section names
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>
2026-01-24 09:55:00 +01:00
Venkat Chimata
69cf683419 renderer: derive no_reconf from radio reconf capability
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>
2026-01-24 09:54:50 +01:00
Marek Hajduczenia
13f797e4aa radio: use PHY-reported channels instead of hardcoded lists
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>
2026-01-24 09:49:40 +01:00
Lannar Dean
e5a6295271 state: guard against null devstats in iface_add_counters
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>
2026-01-24 09:47:20 +01:00
Ivan Chvets
d26c4b0a1e fix: Updated state.uc to fix issue with fingerprinting raw mode
Fixes: WIFI-15031
Signed-off-by: Ivan Chvets <ivan.chvets@kinarasystems.com>
2025-12-12 15:57:30 +01:00
John Crispin
e37d31b810 set schema version to 4.2.0
Signed-off-by: John Crispin <john@phrozen.org>
2025-12-11 16:34:12 +01:00
Arif Alam
a6fdd32e40 cmd_upgrade: enable curl to follow redirects
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>
2025-12-11 06:16:11 +01:00
i-chvets
ef200b46aa Merge pull request #76 from Telecominfraproject/WIFI-15031-fix-fingerprinting-raw-mode
WIFI-15031: fix: updated schema to fix fingerprinting raw mode issue
2025-12-10 15:36:32 -05:00
Ivan Chvets
1c3e51f62b fix: Updated schema to fix issue with fingerprinting raw mode.
https://telecominfraproject.atlassian.net/browse/WIFI-15031
Signed-off-by: Ivan Chvets <ivan.chvets@kinarasystems.com>
2025-12-10 11:48:03 -05:00
John Crispin
384eba5c0e radio: apply HE settings for EHT modes
HE settings (bss_color, multiple_bssid, ema) are also valid for
EHT (802.11be) configurations.

Signed-off-by: John Crispin <john@phrozen.org>
2025-12-05 10:50:56 +01:00
Tanya Singh
dc9cad9564 Update state schema to add chanUtil field in radio
Fixes: WIFI-15177
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-10-16 11:07:45 +02:00
John Crispin
c836eb5cf4 ssid: fix roaming defaults for PSK and RADIUS configurations
- 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>
2025-10-09 11:58:58 +02:00
John Crispin
c7e15eb340 schema.json: update version to 4.1.1
Signed-off-by: John Crispin <john@phrozen.org>
2025-10-07 11:28:45 +02:00
John Crispin
676e1550c5 dhcp_inject: fix a syntax issue in dhcp_inject
Signed-off-by: John Crispin <john@phrozen.org>
2025-09-29 16:29:28 +02:00
John Crispin
e594c44c89 captive.uam.mac-auth: the default was wrong
Signed-off-by: John Crispin <john@phrozen.org>
2025-09-25 18:45:05 +02:00
Ian Chen
100c045af1 Fix cloud cannot show association list when WDS-AP in state.uc
Fixes: WIFI-14838

Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-09-24 13:05:47 +02:00
Kumiko18
168f6a4ab3 dhcp_inject: Support multiple upstream
Support multiple ssid <-> upstream bindings.

Fixes: WIFI-15125
Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-09-24 13:05:27 +02:00
Lannar Dean
a1e7571a07 state: fix unassigned access
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>
2025-09-12 07:53:59 +02:00
Aditya-Rai-25
1c6b3095cb ssid: decouple batman tunnel from meshpoint interfaces
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>
2025-08-04 16:32:36 +02:00
Tanya Singh
30c73745c1 Add 'access-token' to AFC server config
Fixes: WIFI-14921
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-07-29 13:02:26 +02:00
Tanya Singh
92fb3c123e WIFI-14901: Add rrm_chanutil status to health.uc (when it fails) and save health metric in /tmp/ucentral.health
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-07-27 17:01:36 +02:00
Tanya Singh
6313892c70 WIFI-14906: Add 'sync' after file generation in Cloud discovery process
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-07-27 16:57:12 +02:00
Ian Chen
b971b73d4c Support HaLow Mesh on EAP112
set HaLow MESH interface in ssid.uc

Fixes: WIFI-14896
Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-07-24 13:28:42 +02:00
NavneetBarwal-RA
7d283201c0 Fix in ucode script of config_raw to add multiple UCI sections via config-raw object of the schema
Fixes: WIFI-14885

Signed-off-by: NavneetBarwal-RA <navneet51.barwal@routerarchitects.com>
2025-07-24 13:27:43 +02:00
Tanya Singh
1453f2ebf1 chanUtil per radio shall be obtained from the policy_chanutil.uc script
Fixes: WIFI-14837
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-07-24 13:27:06 +02:00
John Crispin
fa26853696 enable multiple bssid by default on 6G
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-24 13:26:33 +02:00
John Crispin
5276d0b8b6 use more explicit code when checking for the existence of a wiphy
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-11 13:01:16 +02:00
Ian Chen
8238eb640e HaLow: add a switch to enable/disable radio
Fixes: WIFI-14736

Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-07-11 10:43:25 +02:00
Ian Chen
3bda216990 fix EAP112-L ucentral not working
Fixes: WIFI-14595

Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-07-11 07:51:27 +02:00
John Crispin
f3d1356a06 add reenroll command
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-08 10:20:31 +02:00
John Crispin
50ba97e1d4 allow sta-authorized and ft-finish to wifi-frames enum
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-07 16:41:29 +02:00
John Crispin
e062b7c18c properly detect 320MHz channel width
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-07 07:53:51 +02:00
Ian Chen
2819f87b6f HaLow: fix channel 8/24/40 cannot be set
Fixes: WIFI-14577
Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-07-07 07:42:25 +02:00
Ian Chen
3b04c09d96 HaLow: set default channel to avoid HaLow not working when no channel set by JSON
Fixes: WIFI-14739
Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-07-07 07:41:58 +02:00
John Crispin
2b8a58bd52 dont crash if udevmand does not reply
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-03 18:39:50 +02:00
Kumiko18
985f3cbaf1 WIFI-14588: Cloud Package Manager
FIX MISSING SEMICOLON

Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-06-30 06:13:28 +00:00
jackcybertan
125a148764 add PoE support for client ports
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>
2025-06-27 07:26:26 +02:00
Kumiko18
17b6c1868a Cloud Package Manager
Added package_list.uc for sending installed package on remote APs

Fixes: WIFI-14588
Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-06-27 07:25:02 +02:00
Marek Kwaczynski
a86b8b07b4 Fix typo in enhanced MPSK property name
Corrected property key from `enhanced-mpsk` to `enhanced_mpsk`

Fixes: d8260f8 ("add property that allows disabling MPSK")
Fixes: WIFI-14484

Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
2025-06-27 07:23:56 +02:00
John Crispin
57852ed87e update schema.json to 4.1.0
Signed-off-by: John Crispin <john@phrozen.org>
2025-06-13 07:59:39 +02:00
John Crispin
e155483ea0 command: update upgrade and factory commands to handle new operational certs
Signed-off-by: John Crispin <john@phrozen.org>
2025-06-13 07:49:59 +02:00
John Crispin
ac3a1c7c25 convert rssi threshold to interface options
Signed-off-by: John Crispin <john@phrozen.org>
2025-06-11 07:50:13 +02:00
John Crispin
827ccc2c59 setting probe_request_rssi incorrectly turned the SSID into a hidden one
Signed-off-by: John Crispin <john@phrozen.org>
2025-06-10 08:29:50 +02:00
Paul White
b4cfdc6a1c cmd_upgrade: implement secure download
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>
2025-05-26 16:17:29 +02:00
John Crispin
b4635dcf02 add 138 to default requested DHCP options
Signed-off-by: John Crispin <john@phrozen.org>
2025-05-19 06:21:20 +02:00
Henry Haller
9710867e1a make the MTU configurable on GRE tunnels
Signed-off-by: Henry Haller <hbh@rgnets.com>
2025-05-19 06:04:41 +02:00
alex18_huang
4dd0904e17 SSH IdleTimeout can be configured from JSON config
Added support for ucentral config to specify ssh idle-timeout on device.

Fixes: WIFI-14532
Signed-off-by: alex18_huang <alex18_huang@accton.com>
2025-05-19 06:01:30 +02:00
Ian Chen
6faaa1f655 HaLow: Extend ucentral schema & state for HaLow
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>
2025-05-12 07:42:01 +02:00
alex18_huang
aa9cac5172 dhcp_inject: Use same keyword "dhcp-inject" in config file
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>
2025-05-12 07:40:18 +02:00
John Crispin
52afdf8f1d fix wifi-scan on wifi-7 devices
Signed-off-by: John Crispin <john@phrozen.org>
2025-04-30 07:59:29 +02:00