From 336d70127de9a122992b0abaea33de2e604e558d Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 6 Jan 2025 09:19:49 -0800 Subject: [PATCH] [thread-netif] do not close `Tmf::SecureAgent` on `Down()` (#11067) This commit updates the code so that `Tmf::SecureAgent` is not closed when the Thread network interface is brought down. The `SecureAgent` is directly controlled and used by either the `BorderAgent` or `Commissioner` during network operation, which should continue to function even if the Thread network interface is offline. It may also be used by the `Joiner`, but in that case, it will be closed by the `Joiner` itself upon finishing the join attempt. --- src/core/thread/thread_netif.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/thread/thread_netif.cpp b/src/core/thread/thread_netif.cpp index 9c30caad9..2ee0bc603 100644 --- a/src/core/thread/thread_netif.cpp +++ b/src/core/thread/thread_netif.cpp @@ -86,9 +86,6 @@ void ThreadNetif::Down(void) #endif #if OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE Get().Stop(); -#endif -#if OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE - Get().Close(); #endif IgnoreError(Get().Stop()); IgnoreError(Get().Disable());