From 08efcdaef90e4db0ca0526364244953c61b34ffe Mon Sep 17 00:00:00 2001 From: Marius Preda Date: Thu, 7 Aug 2025 18:19:44 +0300 Subject: [PATCH] [trel] fix compilation issue when otPlatTrelNotifyPeerSocketAddressDifference is not defined (#11784) When using OPENTHREAD_CONFIG_TREL_MANAGE_DNSSD_ENABLE the TREL peer discovery platform code is not needed anymore. Added otPlatTrelNotifyPeerSocketAddressDifference under the same logic as the rest of the TREL platform API that is not used when OPENTHREAD_CONFIG_TREL_MANAGE_DNSSD_ENABLE is true. Signed-off-by: Marius Preda --- src/core/radio/trel_peer_discoverer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/radio/trel_peer_discoverer.cpp b/src/core/radio/trel_peer_discoverer.cpp index 9d48e812b..c1a71f43a 100644 --- a/src/core/radio/trel_peer_discoverer.cpp +++ b/src/core/radio/trel_peer_discoverer.cpp @@ -106,7 +106,12 @@ exit: void PeerDiscoverer::NotifyPeerSocketAddressDifference(const Ip6::SockAddr &aPeerSockAddr, const Ip6::SockAddr &aRxSockAddr) { +#if OPENTHREAD_CONFIG_TREL_MANAGE_DNSSD_ENABLE + OT_UNUSED_VARIABLE(aPeerSockAddr); + OT_UNUSED_VARIABLE(aRxSockAddr); +#else otPlatTrelNotifyPeerSocketAddressDifference(&GetInstance(), &aPeerSockAddr, &aRxSockAddr); +#endif } void PeerDiscoverer::PostServiceTask(void)