aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-vdsl-app
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-23 12:37:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-23 12:37:17 +0000
commitfe2007bb079245a74114016a9c6e38fa4f34ad71 (patch)
tree97851df4460f28e3fd6dbdc74a7670e096542972 /package/network/config/ltq-vdsl-app
parent6dc60d54fc3c8ef9dd613aecef0ab17e64b820f2 (diff)
downloadupstream-fe2007bb079245a74114016a9c6e38fa4f34ad71.tar.gz
upstream-fe2007bb079245a74114016a9c6e38fa4f34ad71.tar.bz2
upstream-fe2007bb079245a74114016a9c6e38fa4f34ad71.zip
ltq-vdsl-app: mask out VDSL bits when ATM is selected, fixes compatibility issues with some DSLAMs
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48457
Diffstat (limited to 'package/network/config/ltq-vdsl-app')
-rw-r--r--package/network/config/ltq-vdsl-app/files/dsl_control7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/network/config/ltq-vdsl-app/files/dsl_control b/package/network/config/ltq-vdsl-app/files/dsl_control
index 4ddc1d7880..fd8d0e32d6 100644
--- a/package/network/config/ltq-vdsl-app/files/dsl_control
+++ b/package/network/config/ltq-vdsl-app/files/dsl_control
@@ -133,6 +133,8 @@ start_service() {
config_get firmware dsl firmware
config_get xfer_mode dsl xfer_mode
+ eval "xtse=\"\${xtse_xdsl_$annex}\""
+
[ -z "${xfer_mode}" ] && xfer_mode=ptm
case "${xfer_mode}" in
@@ -140,6 +142,9 @@ start_service() {
LOAD=ltq_atm_vr9
UNLOAD=ltq_ptm_vr9
mode=1
+
+ # mask out VDSL bits when ATM is requested
+ xtse="${xtse%_*}_00"
;;
*)
LOAD=ltq_ptm_vr9
@@ -148,8 +153,6 @@ start_service() {
;;
esac
- eval "xtse=\"\${xtse_xdsl_$annex}\""
-
[ -z "${firmware}" ] && firmware=/lib/firmware/vdsl.bin
[ -f "${firmware}" ] || {
echo failed to find $firmware