From 8076292e455f2758709ec3894ef05a76ba2c19d9 Mon Sep 17 00:00:00 2001 From: Sharad Binjola <31142146+sharadb-amazon@users.noreply.github.com> Date: Thu, 25 May 2023 12:57:05 -0700 Subject: [PATCH] tv-casting-app: turning off extended discovery (#26804) * tv-casting-app: turning off extended discovery (#170) * Moving mTimeSource declaration behind CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY --- .../tv-casting-common/include/CHIPProjectAppConfig.h | 2 +- src/app/server/Dnssd.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 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();