diff --git a/examples/common/pigweed/rpc_services/internal/StatusUtils.h b/examples/common/pigweed/rpc_services/internal/StatusUtils.h index 0eaab65d6706a0..444759f818efa2 100644 --- a/examples/common/pigweed/rpc_services/internal/StatusUtils.h +++ b/examples/common/pigweed/rpc_services/internal/StatusUtils.h @@ -43,7 +43,7 @@ constexpr pw::Status EmberStatusToPwStatus(EmberAfStatus ember_status) return pw::OkStatus(); case EMBER_ZCL_STATUS_NOT_FOUND: return pw::Status::NotFound(); - case EMBER_ZCL_STATUS_NOT_AUTHORIZED: + case EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS: return pw::Status::PermissionDenied(); default: return pw::Status::Unknown(); diff --git a/src/app/clusters/account-login-server/account-login-server.cpp b/src/app/clusters/account-login-server/account-login-server.cpp index b269f028014335..da53ea15e87315 100644 --- a/src/app/clusters/account-login-server/account-login-server.cpp +++ b/src/app/clusters/account-login-server/account-login-server.cpp @@ -145,7 +145,7 @@ bool emberAfAccountLoginClusterLoginCallback(app::CommandHandler * command, cons if (!delegate->HandleLogin(tempAccountIdentifier, setupPin)) { - status = EMBER_ZCL_STATUS_NOT_AUTHORIZED; + status = EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS; } exit: diff --git a/src/app/clusters/ias-zone-server/ias-zone-server.cpp b/src/app/clusters/ias-zone-server/ias-zone-server.cpp index b9eed2bb889d52..92b26045175818 100644 --- a/src/app/clusters/ias-zone-server/ias-zone-server.cpp +++ b/src/app/clusters/ias-zone-server/ias-zone-server.cpp @@ -268,7 +268,7 @@ EmberAfStatus emberAfPluginIasZoneClusterSetEnrollmentMethod(EndpointId endpoint if (emberAfIasZoneClusterAmIEnrolled(endpoint)) { emberAfIasZoneClusterPrintln("Error: Already enrolled"); - status = EMBER_ZCL_STATUS_NOT_AUTHORIZED; + status = EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS; } else if (!isValidEnrollmentMode(method)) { diff --git a/src/app/util/af-enums.h b/src/app/util/af-enums.h index 6bcf85cd189999..3214420927cb42 100644 --- a/src/app/util/af-enums.h +++ b/src/app/util/af-enums.h @@ -28,7 +28,6 @@ enum EmberAfStatus : uint8_t EMBER_ZCL_STATUS_FAILURE = 0x01, EMBER_ZCL_STATUS_INVALID_SUBSCRIPTION = 0x7D, EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS = 0x7E, - EMBER_ZCL_STATUS_NOT_AUTHORIZED = 0x7E, // Deprecated; same as UNSUPPORTED_ACCESS EMBER_ZCL_STATUS_UNSUPPORTED_ENDPOINT = 0x7F, EMBER_ZCL_STATUS_MALFORMED_COMMAND = 0x80, EMBER_ZCL_STATUS_UNSUPPORTED_COMMAND = 0x81, diff --git a/src/app/util/attribute-storage.cpp b/src/app/util/attribute-storage.cpp index d9b76dec4101af..1c744552985c34 100644 --- a/src/app/util/attribute-storage.cpp +++ b/src/app/util/attribute-storage.cpp @@ -545,7 +545,7 @@ EmberAfStatus emAfReadOrWriteAttribute(EmberAfAttributeSearchRecord * attRecord, if (!emberAfAttributeWriteAccessCallback(attRecord->endpoint, attRecord->clusterId, am->attributeId)) { - return EMBER_ZCL_STATUS_NOT_AUTHORIZED; + return EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS; } } else @@ -560,7 +560,7 @@ EmberAfStatus emAfReadOrWriteAttribute(EmberAfAttributeSearchRecord * attRecord, if (!emberAfAttributeReadAccessCallback(attRecord->endpoint, attRecord->clusterId, am->attributeId)) { - return EMBER_ZCL_STATUS_NOT_AUTHORIZED; + return EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS; } }