Signed-off-by: Mathias Kresin <[email protected]>
---

Tested by my self with a "normal" VDSL2 line and by a user with a german 1&1
VDSL2 vectoring line:

/etc/init.d/dsl_control status
ATU-C Vendor ID:                          B5,00,42,44,43,4D,A4,61
ATU-C System Vendor ID:                   B5,00,42,44,43,4D,00,00
Chipset:                                  Lantiq-VRX200 Unknown
Firmware Version:                         5.7.3.3.0.7
API Version:                              4.16.6.3
XTSE Capabilities:                        0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2
Annex:                                    B
Line Mode:                                G.993.5 (VDSL2 with down- and 
upstream vectoring)
Line State:                               UP [0x801: showtime_tc_sync]
Forward Error Correction Seconds (FECS):  Near: 0 / Far: 1479
Errored seconds (ES):                     Near: 0 / Far: 89
Severely Errored Seconds (SES):           Near: 0 / Far: 0
Loss of Signal Seconds (LOSS):            Near: 0 / Far: 0
Unavailable Seconds (UAS):                Near: 96 / Far: 96
Header Error Code Errors (HEC):           Near: 0 / Far: 0
Non Pre-emtive CRC errors (CRC_P):        Near: 0 / Far: 0
Pre-emtive CRC errors (CRCP_P):           Near: 0 / Far: 0
Power Management Mode:                    L0 - Synchronized
Latency / Interleave Delay:               Down: Interleave (0.15 ms) / Up: 
Interleave (1.0 ms)
Data Rate:                                Down: 51.392 Mb/s / Up: 10.047 Mb/s
Line Attenuation (LATN):                  Down: 13.0dB / Up: 12.8dB
Signal Attenuation (SATN):                Down: 13.0dB / Up: 12.6dB
Noise Margin (SNR):                       Down: 22.9dB / Up: 30.3dB
Aggregate Transmit Power(ACTATP):         Down: 1.3dB / Up: 12.5dB
Max. Attainable Data Rate (ATTNDR):       Down: 113.494 Mb/s / Up: 46.306 Mb/s
Line Uptime Seconds:                      341
Line Uptime:                              5m 41s

 target/linux/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 22e65cb..c6996e8 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 !!!
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to