Skip to content

Commit 65c6381

Browse files
Fixup cherry-pick due to deleted header still included in files that now don't exist in csa
1 parent 5093525 commit 65c6381

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/app/AttributePathExpandIterator-Ember.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <app/ConcreteAttributePath.h>
2323
#include <app/EventManagement.h>
2424
#include <app/GlobalAttributes.h>
25-
#include <app/util/att-storage.h>
2625
#include <app/util/endpoint-config-api.h>
2726
#include <lib/core/CHIPCore.h>
2827
#include <lib/core/TLVDebug.h>
@@ -98,7 +97,7 @@ void AttributePathExpandIteratorEmber::PrepareClusterIndexRange(const AttributeP
9897
}
9998
else
10099
{
101-
mClusterIndex = emberAfClusterIndex(aEndpointId, aAttributePath.mClusterId, CLUSTER_MASK_SERVER);
100+
mClusterIndex = emberAfClusterIndex(aEndpointId, aAttributePath.mClusterId, MATTER_CLUSTER_FLAG_SERVER);
102101
// If the given cluster id does not exist on the given endpoint, it will return uint8(0xFF), then endClusterIndex
103102
// will be 0, means we should iterate a null cluster set (skip it).
104103
mEndClusterIndex = static_cast<uint8_t>(mClusterIndex + 1);

src/app/util/ember-compatibility-functions.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <app/RequiredPrivilege.h>
2828
#include <app/reporting/Engine.h>
2929
#include <app/reporting/reporting.h>
30-
#include <app/util/att-storage.h>
3130
#include <app/util/attribute-storage-detail.h>
3231
#include <app/util/attribute-storage-null-handling.h>
3332
#include <app/util/attribute-storage.h>
@@ -95,7 +94,7 @@ Protocols::InteractionModel::Status ServerClusterCommandExists(const ConcreteCom
9594
return Status::UnsupportedEndpoint;
9695
}
9796

98-
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aCommandPath.mClusterId, CLUSTER_MASK_SERVER);
97+
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aCommandPath.mClusterId, MATTER_CLUSTER_FLAG_SERVER);
9998
if (cluster == nullptr)
10099
{
101100
return Status::UnsupportedCluster;
@@ -223,7 +222,7 @@ Protocols::InteractionModel::Status UnsupportedAttributeStatus(const ConcreteAtt
223222
return Status::UnsupportedEndpoint;
224223
}
225224

226-
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aPath.mClusterId, CLUSTER_MASK_SERVER);
225+
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aPath.mClusterId, MATTER_CLUSTER_FLAG_SERVER);
227226
if (cluster == nullptr)
228227
{
229228
return Status::UnsupportedCluster;
@@ -800,7 +799,7 @@ Protocols::InteractionModel::Status CheckEventSupportStatus(const ConcreteEventP
800799
return Status::UnsupportedEndpoint;
801800
}
802801

803-
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aPath.mClusterId, CLUSTER_MASK_SERVER);
802+
const EmberAfCluster * cluster = emberAfFindClusterInType(type, aPath.mClusterId, MATTER_CLUSTER_FLAG_SERVER);
804803
if (cluster == nullptr)
805804
{
806805
return Status::UnsupportedCluster;

0 commit comments

Comments
 (0)