[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 <[email protected]>
This commit is contained in:
Marius Preda
2025-08-07 08:19:44 -07:00
committed by GitHub
parent e76db3af61
commit 08efcdaef9
+5
View File
@@ -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)