From b0835509d205c73245f8d69065040b66b161900d Mon Sep 17 00:00:00 2001 From: Sharad Binjola <31142146+sharadb-amazon@users.noreply.github.com> Date: Wed, 17 May 2023 13:48:09 -0700 Subject: [PATCH 1/2] tv-casting-app: turning off extended discovery (#170) --- .../tv-casting-common/include/CHIPProjectAppConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h index 11f82cf6434c9b..a07482b749a4a1 100644 --- a/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h +++ b/examples/tv-casting-app/tv-casting-common/include/CHIPProjectAppConfig.h @@ -37,7 +37,7 @@ #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1 -#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1 +#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 0 #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE 1 From c7ba4213dca5e841e253baf41471ea8d9307a7f1 Mon Sep 17 00:00:00 2001 From: Sharad Binjola Date: Thu, 25 May 2023 10:01:53 -0700 Subject: [PATCH 2/2] Moving mTimeSource declaration behind CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY --- src/app/server/Dnssd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/server/Dnssd.h b/src/app/server/Dnssd.h index 60f057ca9fd3a0..072af4b720ae05 100644 --- a/src/app/server/Dnssd.h +++ b/src/app/server/Dnssd.h @@ -135,8 +135,6 @@ class DLL_EXPORT DnssdServer // bool HaveOperationalCredentials(); - Time::TimeSource mTimeSource; - FabricTable * mFabricTable = nullptr; CommissioningModeProvider * mCommissioningModeProvider = nullptr; @@ -148,6 +146,8 @@ class DLL_EXPORT DnssdServer Optional mEphemeralDiscriminator; #if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY + Time::TimeSource mTimeSource; + /// Get the current extended discovery timeout (set by /// SetExtendedDiscoveryTimeoutSecs, or the configuration default if not set). int32_t GetExtendedDiscoveryTimeoutSecs();