From 1065da171d995d9fa1be6edb129fcdb58b53c834 Mon Sep 17 00:00:00 2001 From: zribiahmed Date: Wed, 6 Feb 2013 16:04:16 +0000 Subject: [PATCH] --- src/scripts/freecwmp.sh | 2 +- src/scripts/functions/common | 2 +- src/scripts/functions/device_info | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/freecwmp.sh b/src/scripts/freecwmp.sh index 843b0ce..56b136d 100644 --- a/src/scripts/freecwmp.sh +++ b/src/scripts/freecwmp.sh @@ -243,7 +243,7 @@ if [ "$action" = "get_name" -o "$action" = "get_all" ]; then fault_code="$?" if [ "$fault_code" = "0" ]; then if [ "$__arg2" != "0" -a "$__arg2" != "1" ]; then - fault_code="$E_INVALID_ARGUMENTS" + fault_code="$FAULT_CPE_INVALID_ARGUMENTS" fi if [ "$fault_code" = "0" ]; then # TODO: don't return only 'InternetGatewayDevice.' when getting an empty string; but we should both diff --git a/src/scripts/functions/common b/src/scripts/functions/common index a3c1ec9..4f0809d 100644 --- a/src/scripts/functions/common +++ b/src/scripts/functions/common @@ -420,7 +420,7 @@ freecwmp_execute_functions() if [ "$fault_code" = "0" ]; then no_fault="1" fi - if [ "$fault_code" != "0" -a "$fault_code" != "$E_INVALID_PARAMETER_NAME" ]; then + if [ "$fault_code" != "0" -a "$fault_code" != "$FAULT_CPE_INVALID_PARAMETER_NAME" ]; then return $fault_code fi done diff --git a/src/scripts/functions/device_info b/src/scripts/functions/device_info index f0d9178..ee8ee67 100644 --- a/src/scripts/functions/device_info +++ b/src/scripts/functions/device_info @@ -404,7 +404,7 @@ return $FAULT_CPE_INVALID_PARAMETER_NAME } set_device_info_notification() { -return $E_INVALID_PARAMETER_NAME +return $FAULT_CPE_INVALID_PARAMETER_NAME } check_parameter_device_info_generic() {