172 Commits

Author SHA1 Message Date
John Crispin
cb17a7819f ucentral-client: Add command-line options for certificate paths
Allow certificate and CA file paths to be specified via -c and -C
options instead of hardcoded operational certificate paths.

Signed-off-by: John Crispin <john@phrozen.org>
2025-11-25 07:58:05 +01:00
Marek Kwaczynski
549e84e5fe ucentral-client: Add discovery metadata to connect payload
Includes contents of /etc/ucentral/discovery.state.json (if present)
in the "discovery" field of the connect message. This allows the
controller to identify how the device discovered its cloud endpoint.

Fixes: WIFI-14966

Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
2025-08-11 05:37:26 +02:00
Kumiko18
c536f6957b WIFI-14588 cloud package manager
Added function for APs to list/install/remove packages via cloud SDK

Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-07-27 16:52:53 +02:00
John Crispin
69829f63ea Revert "Cloud Package Manager"
This reverts commit 08a842d992.

this is causing connection problems

Signed-off-by: John Crispin <john@phrozen.org>
2025-07-08 09:27:41 +02:00
John Crispin
c3a3e057af remove certupdate from proto.c
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-08 08:18:03 +02:00
John Crispin
4c4710abc8 add reenroll to proto.c
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-08 08:17:29 +02:00
Kumiko18
08a842d992 Cloud Package Manager
Added function for package installing/removing/listing

Fixes: WIFI-14588
Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-06-27 09:39:27 +02:00
John Crispin
4d01f3ee74 use new operational cert and ca
Signed-off-by: John Crispin <john@phrozen.org>
2025-06-13 06:28:23 +02:00
John Crispin
769cf6111f make hostname validation optional
dhcp option 138 uses an IP, CN check would always fail

Signed-off-by: John Crispin <john@phrozen.org>
2025-05-19 06:39:07 +02:00
John Crispin
8c45f965c3 send on/offline events to cloud discovery service
Signed-off-by: John Crispin <john@phrozen.org>
2024-11-12 10:35:52 +01:00
Paul White
c719c1b3ef Include DHCP VSI information in CONNECT message
When there is Vendor-Specific-Information (VSI) provided by the
DHCP server, include this in the CONNECT message.

Fixes: WIFI-14271
Signed-off-by: Paul White <paul@shasta.cloud>
2024-11-11 07:48:18 +01:00
John Crispin
cac85d9333 improve blink command
Signed-off-by: John Crispin <john@phrozen.org>
2024-10-29 18:09:01 +01:00
Mike Hansen
62e0b2d560 This is a combination of commits for handling compressed configuration.
handle compressed configuration

Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
2024-10-20 07:15:38 +02:00
John Crispin
3f0ad16411 remove CI
Signed-off-by: John Crispin <john@phrozen.org>
2024-10-20 07:14:54 +02:00
John Crispin
815ad0970b add fingerprint command
Signed-off-by: John Crispin <john@phrozen.org>
2024-05-31 09:45:45 +02:00
John Crispin
2e88c1372d do not immediatley reply to upgrade commands
Signed-off-by: John Crispin <john@phrozen.org>
2023-12-13 08:47:49 +01:00
John Crispin
f19b1e86b7 add support for the "fixedconfig" command
Signed-off-by: John Crispin <john@phrozen.org>
2023-11-09 12:53:05 +01:00
John Crispin
ca090c4f2c add default settings section to connect message
Signed-off-by: John Crispin <john@phrozen.org>
2023-11-07 15:05:27 +01:00
John Crispin
3025bf919e add certupdate command
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-20 15:35:02 +02:00
John Crispin
d10428a05c add transfer command
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-20 12:23:51 +02:00
John Crispin
616e88f87a move blink handler to ucentral-state
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-19 16:16:26 +02:00
John Crispin
feada903bf add led triggers to connect logic
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-19 16:16:26 +02:00
John Crispin
b3c449f66c fix time_t format primitives
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-19 07:44:14 +02:00
John Crispin
3bbcd36c61 handle rrm command
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-17 09:08:46 +02:00
John Crispin
d898a7afb5 prevent ip-collide script and apply task running in parallel
Signed-off-by: John Crispin <john@phrozen.org>
2023-07-27 12:05:06 +02:00
John Crispin
feadd83436 handle configuration load/parse error
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-22 10:47:22 +02:00
John Crispin
ffd9d6f8fa indicate crashlog inside the connect reason
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-18 16:02:58 +02:00
John Crispin
cb5030f5ad crashlog->rebootlog
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-17 16:53:43 +02:00
John Crispin
cca938b44c send connect reason
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-16 14:18:37 +02:00
John Crispin
559762161d improve the logic that detects stale gateway connections
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-06 14:15:00 +02:00
Satya-sc
a94e2dfd5c ucentral-client: added the support to remove old public IP file once it is connected successfully to controller
Signed-off-by: Satya-sc <Satya@shasta.cloud>
2023-05-03 08:54:51 +02:00
John Crispin
c500514a53 reduce PING interval to 60s
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-02 18:46:56 +02:00
John Crispin
2667719069 allow sending venue_broadcast
Signed-off-by: John Crispin <john@phrozen.org>
2023-03-13 07:14:07 +01:00
John Crispin
d637cb812c propagate incoming venue broadcast events
Signed-off-by: John Crispin <john@phrozen.org>
2023-03-13 06:29:10 +01:00
John Crispin
2917158bb5 ubus fix dump all telemetry
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-20 08:55:32 +01:00
John Crispin
8f5ab3f8fe add periodic telemetry
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
Jeffrey Han
36f12f372d Add README.md
Signed-off-by: Jeffrey Han <39203126+elludraon@users.noreply.github.com>
2023-01-25 16:33:27 +01:00
John Crispin
035ffc5243 update wifi-scan timeout to 120s
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
dd2da74b73 force SIGKILL when terminating a runqueu task
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
1fe60c4dcf propagate "cancelled" when a runqueue job timed out
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
4721e428b9 proto: limit wifiscans to 30s
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
a821772f98 task: add an additional runqueue for admin commands
This ensures that reboot, upgrade and factory always get executed immediatley.

Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
f2a8af9dd1 fix the ping command
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-25 16:33:27 +01:00
John Crispin
622a9b7295 rework telemetry stream
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-20 08:56:32 +01:00
John Crispin
568a84a312 do not enforce CN validation when in self-signed mode
Signed-off-by: John Crispin <john@phrozen.org>
2023-01-19 05:55:43 +01:00
John Crispin
5f69da7297 send restricted=1 on locked units
Signed-off-by: John Crispin <john@phrozen.org>
2022-11-04 17:10:40 +01:00
John Crispin
6e774f6c78 upload: delete files after the upload completed
Signed-off-by: John Crispin <john@phrozen.org>
2022-10-27 12:44:48 +02:00
John Crispin
e39e9c25e5 add wildcard CN validation
Signed-off-by: John Crispin <john@phrozen.org>
2022-10-06 09:13:47 +02:00
John Crispin
62efd454a0 add radius-proxy RX path
Signed-off-by: John Crispin <john@phrozen.org>
2022-06-21 18:54:12 +02:00
John Crispin
a4671bbe7d fix an error reported by CI
/home/build/openwrt/proto.c:394:19: warning: 2nd function call argument is an uninitialized value [core.CallAndMessage]
                char *encoded = b64(compressed, comp_len);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Signed-off-by: John Crispin <john@phrozen.org>
2022-05-29 17:24:15 +02:00