From 27711c319508b65a4cfb4e4209dc46a34d61f5dd Mon Sep 17 00:00:00 2001 From: shihchienc Date: Wed, 24 Jan 2024 09:05:34 +0000 Subject: [PATCH] [Thread] Add socket interface support in thread chip Bug: 313425570 Test: build pass & manual test Change-Id: Ie1b0c687cf529659521f1dd1457fcda35af1bf49 --- threadnetwork/aidl/default/thread_chip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/threadnetwork/aidl/default/thread_chip.cpp b/threadnetwork/aidl/default/thread_chip.cpp index ed34e630b8..d1e1d4ceaf 100644 --- a/threadnetwork/aidl/default/thread_chip.cpp +++ b/threadnetwork/aidl/default/thread_chip.cpp @@ -24,6 +24,7 @@ #include #include "hdlc_interface.hpp" +#include "socket_interface.hpp" #include "spi_interface.hpp" namespace aidl { @@ -43,6 +44,8 @@ ThreadChip::ThreadChip(char* url) : mUrl(), mRxFrameBuffer(), mCallback(nullptr) mSpinelInterface = std::make_shared(mUrl); } else if (ot::Posix::HdlcInterface::IsInterfaceNameMatch(interfaceName)) { mSpinelInterface = std::make_shared(mUrl); + } else if (SocketInterface::IsInterfaceNameMatch(interfaceName)) { + mSpinelInterface = std::make_shared(mUrl); } else { ALOGE("The interface \"%s\" is not supported", interfaceName); exit(EXIT_FAILURE);