openwrt/package
Florian Eckert 4407d45d96 ltq-vdsl-app: extent dsl metrics with state_num and power_state_num
With the old ubus dsl API, the numbers for the individual line_states and
power_states were also returned. These were not ported to the new DSL
C-API. This commit adds the missing information.

For this the internal values are mapped to numbers.

* additional JSON output for state_num:
"state_num": <map_state_number>

Since not all values are meaningful only the following values are
implemented, this can be extended if the future.

* LSTATE_MAP_NOT_INITIALIZED
* LSTATE_MAP_EXCEPTION
* LSTATE_MAP_IDLE
* LSTATE_MAP_SILENT
* LSTATE_MAP_HANDSHAKE
* LSTATE_MAP_FULL_INIT
* LSTATE_MAP_SHOWTIME_NO_SYNC
* LSTATE_MAP_SHOWTIME_TC_SYNC
* LSTATE_MAP_RESYNC

* additinal JSON output for power_level:
"power_state_num": <map_power_satte_number>,

Since there are not so many here, all are mapped.

* PSTATE_MAP_NA,
* PSTATE_MAP_L0,
* PSTATE_MAP_L1,
* PSTATE_MAP_L2,
* PSTATE_MAP_L3,

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
v6:
Add state LSTATE_MAP_NOT_INITILIZED at the beginning of the list
Start the list LSTATE_MAP with -1
Reviewed-by: Andre Heider <a.heider@gmail.com>
2021-04-17 21:56:05 +02:00
..
base-files base-files: fix status display command 2021-04-03 18:56:02 +02:00
boot uboot-sunxi: update ATF dependencies for 3 boards 2021-04-15 00:24:50 +02:00
devel valgrind: Fix compile problem with MIPS soft float 2021-04-11 23:01:28 +02:00
firmware ipq40xx: add MikroTik hAP ac2 support 2021-04-05 04:13:28 +02:00
kernel kernel: limit crypto-hw-ccp to the x86 2021-04-13 17:20:55 +02:00
libs libsemanage: fix pkgconfig paths 2021-04-15 11:54:14 +01:00
network ltq-vdsl-app: extent dsl metrics with state_num and power_state_num 2021-04-17 21:56:05 +02:00
system uci: update to the latest master 2021-04-14 08:33:12 +02:00
utils firmware-utils: bcm4908img: convert into a package 2021-04-08 10:50:59 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00