diff --git a/src/app/EventPathParams.h b/src/app/EventPathParams.h index 29af405c60b515..1bf6b93f79fee2 100644 --- a/src/app/EventPathParams.h +++ b/src/app/EventPathParams.h @@ -35,7 +35,7 @@ struct EventPathParams return other.mEndpointId == mEndpointId && other.mClusterId == mClusterId && other.mEventId == mEventId; } - bool HasEventWildcard() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); } + bool IsWildcardPath() const { return HasWildcardEndpointId() || HasWildcardClusterId() || HasWildcardEventId(); } // For event, an event id can only be interpreted if the cluster id is known. bool IsValidEventPath() const { return !(HasWildcardClusterId() && !HasWildcardEventId()); } diff --git a/src/app/reporting/Engine.cpp b/src/app/reporting/Engine.cpp index a7bb6a5dbd5bbb..7761e24ffb1c75 100644 --- a/src/app/reporting/Engine.cpp +++ b/src/app/reporting/Engine.cpp @@ -298,7 +298,7 @@ CHIP_ERROR Engine::CheckAccessDeniedEventPaths(TLV::TLVWriter & aWriter, bool & CHIP_ERROR err = CHIP_NO_ERROR; for (auto current = apReadHandler->mpEventPathList; current != nullptr;) { - if (current->mValue.HasEventWildcard()) + if (current->mValue.IsWildcardPath()) { current = current->mpNext; continue;