lantiq: use ActualNetDataRate for speed reporting
[openwrt/openwrt.git] / package / network / config / ltq-vdsl-app / src / src / dsl_cpe_ubus.c
index 52b2be20e16c23969fd048643d3b7d02696bd89d..8eefdfe4d506fc9c5d8da67e065515b8501d3133 100644 (file)
@@ -532,7 +532,12 @@ static void g997_channel_status(int fd, DSL_AccessDir_t direction) {
        IOCTL_DIR(DSL_G997_ChannelStatus_t, DSL_FIO_G997_CHANNEL_STATUS_GET, direction);
 
        m_u32("interleave_delay", out.data.ActualInterleaveDelay * 10);
+#ifndef INCLUDE_DSL_CPE_API_DANUBE
+       // prefer ACTNDR, see comments in drv_dsl_cpe_api_g997.h
+       m_u32("data_rate", out.data.ActualNetDataRate);
+#else
        m_u32("data_rate", out.data.ActualDataRate);
+#endif
 }
 
 static void g997_line_status(int fd, DSL_AccessDir_t direction) {