Commit Graph

133 Commits

Author SHA1 Message Date
John Crispin
5a6d23b76b fix/improve swconfig detection
Signed-off-by: John Crispin <john@phrozen.org>
2025-04-10 16:07:00 +02:00
John Crispin
10b5c3641a extend swconfig support for dual cpu port swconfig switches
Signed-off-by: John Crispin <john@phrozen.org>
2025-04-09 09:23:09 +02:00
Tanya Singh
0683d041e4 Add pdev_stats and channel utilization for each radio in the statistics
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-04-08 07:05:27 +02:00
John Crispin
a2133a8e2a always regenerate the default /e/c/wireless config
Signed-off-by: John Crispin <john@phrozen.org>
2025-03-28 09:28:21 +01:00
Tanya Singh
d183922b77 WIFI-14477: Get switch carrier, speed & duplex info from swconfig command
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-03-24 08:12:26 +01:00
Tanya Singh
1c11c1bb67 WIFI-14284: Use swconfig to get the correct port to VLAN ID mapping for statistics
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
2025-03-17 11:58:58 +01:00
Francisco Jose Alvarez
90aa0eefc9 system: Fix the delta_counters for dynamic vlan stations
Signed-off-by: Francisco Jose Alvarez <francisco.alvarez@galgus.ai>
2025-02-27 09:44:29 +01:00
John Crispin
61e5802789 add multi radio support
Signed-off-by: John Crispin <john@phrozen.org>
2024-12-09 08:34:39 +01:00
Paul White
f0dfb400b5 Include DHCP VSI information in state message
When the Vendor-Sepcific-Information (VSI) option is returned by the
DHCP server, include this information in the state message.

Fixes: WIFI-14271
Signed-off-by: Paul White <paul@shasta.cloud>
2024-11-11 07:50:06 +01:00
Mike Hansen
ad1c322618 flag to denote compressed commands (configure for now) are supported
Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
2024-10-23 13:41:41 +02:00
John Crispin
45e6c53480 command: add fixed_config
Signed-off-by: John Crispin <john@phrozen.org>
2024-09-16 16:03:45 +02:00
Venkat Chimata
658a29d248 state.uc: Fixing negative coutners
Index the port counters with names instead of sequential accessing.
With sequential accessing, there is no gurantee that we may get the
same counter in two consequent accesses

Signed-off-by: Venkat Chimata <venkata@shasta.cloud>
2024-09-02 16:09:11 +02:00
John Crispin
39aed21ed9 captive: allow loading the web-root from an external http server
Signed-off-by: John Crispin <john@phrozen.org>
2024-08-05 10:29:31 +02:00
John Crispin
ce416682ba fingerprint: add missing allow_wan option to render code
Signed-off-by: John Crispin <john@phrozen.org>
2024-06-07 09:05:49 +02:00
John Crispin
8045e6c51d add full fingerprinting data model
Signed-off-by: John Crispin <john@phrozen.org>
2024-05-31 12:07:01 +02:00
John Crispin
ef09cf05ba remove boottime fro state, it is in accurate without a RTC
Signed-off-by: John Crispin <john@phrozen.org>
2024-05-03 08:23:45 +02:00
John Crispin
a3b7e3106e add the option for providing vendor specific versioning info
Signed-off-by: John Crispin <john@phrozen.org>
2024-04-09 16:17:21 +02:00
John Crispin
377c2ab9c1 add ap/schema version to capabilities
Signed-off-by: John Crispin <john@phrozen.org>
2024-04-09 08:54:56 +02:00
John Crispin
cb1c18db70 add support for device fingerprinting
Signed-off-by: John Crispin <john@phrozen.org>
2024-03-25 11:14:16 +01:00
John Crispin
c544ab01e5 state: ignore non connected thermal zones
The QCA v5.4 kernel introduced thermal zones for PA. These will read
500C+ if not wired. Skip them.

Signed-off-by: John Crispin <john@phrozen.org>
2024-01-09 08:41:38 +01:00
John Crispin
2b884b3781 fix state messages on single port devices
the swconfig patches broke this

Signed-off-by: John Crispin <john@phrozen.org>
2023-11-07 11:27:17 +01:00
John Crispin
9d2312a510 ieee8021x: rework render code
Signed-off-by: John Crispin <john@phrozen.org>
2023-11-03 08:44:53 +01:00
John Crispin
01e80a671e add delta counters for upstream vlan interfaces
Signed-off-by: John Crispin <john@phrozen.org>
2023-10-05 10:22:09 +02:00
John Crispin
d42d7c0ca0 add delta counters to state messages
Signed-off-by: John Crispin <john@phrozen.org>
2023-10-03 09:15:34 +02:00
John Crispin
fdeb2b8b85 revert "public_ip_lookup" patch
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-28 14:52:40 +02:00
John Crispin
b2998010ad unify the state uci file
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-28 14:52:40 +02:00
John Crispin
89efb8b035 trigger health/state via the new state daemon
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-28 14:52:40 +02:00
John Crispin
0220fbcaf7 fix a null expression in capabilities code
Signed-off-by: John Crispin <john@phrozen.org>
2023-08-17 15:07:11 +02:00
John Crispin
249788ea23 fix state messages when no devices are configured
Signed-off-by: John Crispin <john@phrozen.org>
2023-07-19 16:58:58 +02:00
John Crispin
f56f754c5f allow multiple fixe country codes on an AP
Signed-off-by: John Crispin <john@phrozen.org>
2023-07-14 16:18:37 +02:00
John Crispin
00d0403a55 add swconfig support
Signed-off-by: John Crispin <john@phrozen.org>
2023-07-12 09:14:24 +02:00
John Crispin
5255152b28 use logical names instead of linux netdev ones inside state messages
Signed-off-by: John Crispin <john@phrozen.org>
2023-07-10 07:21:59 +02:00
John Crispin
48ee8f025d fix cpu core utilisation
Signed-off-by: John Crispin <john@phrozen.org>
2023-06-14 14:38:23 +02:00
John Crispin
04ce23b667 fix udevstats counters
root@78cb2c0005fa:~# /usr/share/ucentral/state.uc
Reference error: left-hand side expression is null
In iface_add_counters(), file /usr/share/ucentral/state.uc, line 274, byte 30:
  called from function [anonymous function] (/usr/share/ucentral/state.uc:507:48)
  called from function foreach ([C])
  called from anonymous function (/usr/share/ucentral/state.uc:514:22)

 `        counters.tx_bytes += vid.tx.bytes;`
  Near here --------------------------^

Signed-off-by: John Crispin <john@phrozen.org>
2023-06-14 06:47:26 +02:00
John Crispin
11d7374f65 always set the developer mode flag when generating capabilities
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-19 14:03:18 +02:00
John Crispin
694fd64277 convert vlan_ifaces to an array
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-16 17:32:03 +02:00
John Crispin
e30b05f369 propagate reboot_cause
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-16 14:05:50 +02:00
John Crispin
11dff2ae46 add dynamic vlans to state messages
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-16 13:17:01 +02:00
John Crispin
689b111915 make crashlog handler generic for pstore items
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-12 15:56:45 +02:00
John Crispin
5d8e9b0a42 add boot time to the state message
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-11 15:10:37 +02:00
John Crispin
bc91b18ed1 fix public_ip syntax error
Syntax error: Expecting expression
In line 39, byte 16:

 `                let result = system(sprintf("/usr/bin/curl -m 3 %s -o %s", cfg.public_ip_lookup, public_ip_file));`
  Near here ------^

Signed-off-by: John Crispin <john@phrozen.org>
2023-05-05 09:01:45 +02:00
John Crispin
37d7a26975 add per core cpu_load to the state message
Signed-off-by: John Crispin <john@phrozen.org>
2023-05-05 08:50:15 +02:00
Satya-sc
0af4f34a4e Added support of retrieval of public IP if not existed and reporting in state msg
Signed-off-by: Satya-sc <Satya@shasta.cloud>
2023-05-02 17:44:07 +02:00
John Crispin
b918e6aef2 state: some devices will report temperature in milli celssius
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-11 09:10:48 +02:00
John Crispin
204341fafb state: add port_id and port_desc to lldp state
Signed-off-by: John Crispin <john@phrozen.org>
2023-03-09 16:37:32 +01:00
John Crispin
86dc187ec8 the developer mode indication should be in the top level of the capa dictionary
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-22 18:04:01 +01:00
John Crispin
f4aca9b5eb indicate secure-rtty by default
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-22 17:52:03 +01:00
John Crispin
2ee157f4a1 fix health.uc: the events patch left a stray sprintf( breaking compile
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-21 13:57:28 +01:00
John Crispin
ac9e8cf2a2 capabilities: add developer mode info to restrictions
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-21 13:49:49 +01:00
John Crispin
bf8c3846fe properly stream state in telemetry mode
Signed-off-by: John Crispin <john@phrozen.org>
2023-02-20 08:42:44 +01:00