diff options
author | Jan Hoffmann <jan@3e8.eu> | 2023-01-28 20:29:22 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-02-03 13:33:36 +0100 |
commit | 723963543a270a5de845ef0ddd07c51c0a8b2cbb (patch) | |
tree | 208a6f113f296bf8c4e2fde1376def0ae33b2418 /package/kernel/lantiq/ltq-vdsl-vr9/patches | |
parent | 8bc72ea7be3976711dacc09f0fdab061d6e5152a (diff) | |
download | upstream-723963543a270a5de845ef0ddd07c51c0a8b2cbb.tar.gz upstream-723963543a270a5de845ef0ddd07c51c0a8b2cbb.tar.bz2 upstream-723963543a270a5de845ef0ddd07c51c0a8b2cbb.zip |
ltq-vdsl-vr9: fix upstream MINEFTR
The upstream value read from the device seems to already be in bits per
second, so there is no need to multiply by 1000 again (which for typical
values causes an overflow of the 32-bit unsigned integer).
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'package/kernel/lantiq/ltq-vdsl-vr9/patches')
-rw-r--r-- | package/kernel/lantiq/ltq-vdsl-vr9/patches/210-fix-us-eftrmin.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vdsl-vr9/patches/210-fix-us-eftrmin.patch b/package/kernel/lantiq/ltq-vdsl-vr9/patches/210-fix-us-eftrmin.patch new file mode 100644 index 0000000000..51651f476a --- /dev/null +++ b/package/kernel/lantiq/ltq-vdsl-vr9/patches/210-fix-us-eftrmin.patch @@ -0,0 +1,22 @@ +--- a/src/pm/drv_dsl_cpe_api_pm_vrx.c ++++ b/src/pm/drv_dsl_cpe_api_pm_vrx.c +@@ -1435,9 +1435,16 @@ DSL_Error_t DSL_DRV_PM_DEV_ReTxCountersG + /* ignore zero value*/ + if (nEftrMin) + { +- /* Fw Format: kBit/s */ +- /* API format: bit/s */ +- pCounters->nEftrMin = nEftrMin*1000; ++ if (nDirection == DSL_NEAR_END) ++ { ++ /* Fw Format: kBit/s */ ++ /* API format: bit/s */ ++ pCounters->nEftrMin = nEftrMin*1000; ++ } ++ else ++ { ++ pCounters->nEftrMin = nEftrMin; ++ } + } + } + else |