From ec1b121769a4095a76321e9317faf1e803e101d0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Dec 2015 09:52:42 +0000 Subject: [PATCH] lantiq: add VDSL2 vectoring status information Signed-off-by: Mathias Kresin SVN-Revision: 47785 --- .../lantiq/base-files/lib/functions/lantiq_dsl.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 22e65cb148..60ace44031 100755 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -160,6 +160,9 @@ xtse() { local annex_s="" local line_mode_s="" + local vector_s="" + + local dsmsg="" local cmd="" xtusesg=$(dsl_cmd g997xtusesg) @@ -256,7 +259,15 @@ xtse() { fi if [ $((xtse8 & 7)) != 0 ]; then - line_mode_s="$line_mode_s G.993.2 (VDSL2)," + dsmsg=$(dsl_cmd dsmsg) + vector_s=$(dsl_val "$dsmsg" eVectorStatus) + + case "$vector_s" in + "0") line_mode_s="$line_mode_s G.993.2 (VDSL2)," ;; + "1") line_mode_s="$line_mode_s G.993.5 (VDSL2 with downstream vectoring)," ;; + "2") line_mode_s="$line_mode_s G.993.5 (VDSL2 with down- and upstream vectoring)," ;; + *) line_mode_s="$line_mode_s unknown," ;; + esac fi #!!! PROPRIETARY & INTERMEDIATE USE !!! -- 2.30.2