From 7eb8258fa9564f68b132177185feb124e9c2f16b Mon Sep 17 00:00:00 2001 From: C Freeman Date: Thu, 31 Mar 2022 23:24:24 -0400 Subject: [PATCH] Pass network ID to device layer. (#16911) We have this info now, we should pass it along. Device layer doesn't do anything with it currently. --- .../clusters/network-commissioning/network-commissioning.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/network-commissioning/network-commissioning.cpp b/src/app/clusters/network-commissioning/network-commissioning.cpp index 56eab8edd4142f..f803e738def0ae 100644 --- a/src/app/clusters/network-commissioning/network-commissioning.cpp +++ b/src/app/clusters/network-commissioning/network-commissioning.cpp @@ -411,8 +411,8 @@ void Instance::OnResult(Status commissioningError, CharSpan errorText, int32_t i if (commissioningError == Status::kSuccess) { - // TODO: Pass the actual network id to device control server. - DeviceLayer::DeviceControlServer::DeviceControlSvr().ConnectNetworkForOperational(ByteSpan()); + DeviceLayer::DeviceControlServer::DeviceControlSvr().ConnectNetworkForOperational( + ByteSpan(mLastNetworkID, mLastNetworkIDLen)); } }