diff options
author | Martin Schiller <ms@dev.tdt.de> | 2019-08-26 07:37:14 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-09-19 23:43:27 +0200 |
commit | 315405f36b0dcad6ed4bd1baaf858c36790f5735 (patch) | |
tree | 01f0c057d90317ac473fe7c6bf2af900b5778c6e /target/linux/lantiq/base-files/lib | |
parent | 827f47749b75dcc6b650297b9303c27127b15201 (diff) | |
download | upstream-315405f36b0dcad6ed4bd1baaf858c36790f5735.tar.gz upstream-315405f36b0dcad6ed4bd1baaf858c36790f5735.tar.bz2 upstream-315405f36b0dcad6ed4bd1baaf858c36790f5735.zip |
lantiq-dsl: fix value of FECS counter
Instead of the nFECS value, the nFEC value (the number of corrected code words)
was mistakenly used.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'target/linux/lantiq/base-files/lib')
-rwxr-xr-x | target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh index 8665240da4..698d481140 100755 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -451,7 +451,8 @@ latency_delay() { errors() { local lsctg local dpctg - local ccsg + local fecsf + local fecsn local esf local esn local sesf @@ -468,16 +469,15 @@ errors() { local hecf local hecn - local fecn - local fecf - lsctg=$(dsl_cmd pmlsctg 1) + fecsf=$(dsl_val "$lsctg" nFECS) esf=$(dsl_val "$lsctg" nES) sesf=$(dsl_val "$lsctg" nSES) lossf=$(dsl_val "$lsctg" nLOSS) uasf=$(dsl_val "$lsctg" nUAS) lsctg=$(dsl_cmd pmlsctg 0) + fecsn=$(dsl_val "$lsctg" nFECS) esn=$(dsl_val "$lsctg" nES) sesn=$(dsl_val "$lsctg" nSES) lossn=$(dsl_val "$lsctg" nLOSS) @@ -493,15 +493,9 @@ errors() { crc_pn=$(dsl_val "$dpctg" nCRC_P) crcp_pn=$(dsl_val "$dpctg" nCRCP_P) - ccsg=$(dsl_cmd pmccsg 0 1 0) - fecf=$(dsl_val "$ccsg" nFEC) - - ccsg=$(dsl_cmd pmccsg 0 0 0) - fecn=$(dsl_val "$ccsg" nFEC) - if [ "$action" = "lucistat" ]; then - echo "dsl.errors_fec_near=${fecn:-nil}" - echo "dsl.errors_fec_far=${fecf:-nil}" + echo "dsl.errors_fecs_near=${fecsn:-nil}" + echo "dsl.errors_fecs_far=${fecsf:-nil}" echo "dsl.errors_es_near=${esn:-nil}" echo "dsl.errors_es_far=${esf:-nil}" echo "dsl.errors_ses_near=${sesn:-nil}" @@ -517,7 +511,7 @@ errors() { echo "dsl.errors_crcp_p_near=${crcp_pn:-nil}" echo "dsl.errors_crcp_p_far=${crcp_pf:-nil}" else - echo "Forward Error Correction Seconds (FECS): Near: ${fecn} / Far: ${fecf}" + echo "Forward Error Correction Seconds (FECS): Near: ${fecsn} / Far: ${fecsf}" echo "Errored seconds (ES): Near: ${esn} / Far: ${esf}" echo "Severely Errored Seconds (SES): Near: ${sesn} / Far: ${sesf}" echo "Loss of Signal Seconds (LOSS): Near: ${lossn} / Far: ${lossf}" |