Skip to content

Commit

Permalink
default mICDModeAdvertise to kNone
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs committed Feb 13, 2024
1 parent febdef1 commit 44190de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/app/server/Dnssd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ CHIP_ERROR DnssdServer::AdvertiseOperational()

#if CHIP_CONFIG_ENABLE_ICD_SERVER
AddICDKeyToAdvertisement(advertiseParameters);
#else
advertiseParameters.SetICDModeToAdvertise(Dnssd::ICDModeAdvertise::kNone);
#endif

auto & mdnsAdvertiser = chip::Dnssd::ServiceAdvertiser::Instance();
Expand Down Expand Up @@ -270,8 +268,6 @@ CHIP_ERROR DnssdServer::Advertise(bool commissionableNode, chip::Dnssd::Commissi

#if CHIP_CONFIG_ENABLE_ICD_SERVER
AddICDKeyToAdvertisement(advertiseParameters);
#else
advertiseParameters.SetICDModeToAdvertise(Dnssd::ICDModeAdvertise::kNone);
#endif

if (commissionableNode)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dnssd/Advertiser.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class BaseAdvertisingParams
size_t mMacLength = 0;
Optional<ReliableMessageProtocolConfig> mLocalMRPConfig;
Optional<bool> mTcpSupported;
ICDModeAdvertise mICDModeAdvertise;
ICDModeAdvertise mICDModeAdvertise = ICDModeAdvertise::kNone;
};

/// Defines parameters required for advertising a CHIP node
Expand Down

0 comments on commit 44190de

Please sign in to comment.