diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 09:52:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 09:52:42 +0000 |
commit | 55838c121977504daadba9fa2681e710537bb7b1 (patch) | |
tree | d44633109a6df8bbee8a2c3a001ab930483a1fbe /target/linux/lantiq/base-files | |
parent | 09a2257c19a88a1747bb115a8d9ad82ff96413b2 (diff) | |
download | master-187ad058-55838c121977504daadba9fa2681e710537bb7b1.tar.gz master-187ad058-55838c121977504daadba9fa2681e710537bb7b1.tar.bz2 master-187ad058-55838c121977504daadba9fa2681e710537bb7b1.zip |
lantiq: add VDSL2 vectoring status information
Signed-off-by: Mathias Kresin <openwrt@kresin.me>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47785 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-x | target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 13 |
1 files changed, 12 insertions, 1 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 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 !!! |