From abb645f5f4b4f62681f01d09b3cd04fc9137f614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Fri, 8 Mar 2024 00:11:51 +0100 Subject: [PATCH] [nrf noup] Do not clear Last Network ID and Connection Error after scan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes the issue where ScanComplete event cleared the attribute values for connection status. This commit should be reverted and replaced by Matter 1.3 revision where the network commissioning cluster has been rewritten. Signed-off-by: Ɓukasz Duda --- .../clusters/network-commissioning/network-commissioning.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/clusters/network-commissioning/network-commissioning.cpp b/src/app/clusters/network-commissioning/network-commissioning.cpp index 1026105160..d86a3183b2 100644 --- a/src/app/clusters/network-commissioning/network-commissioning.cpp +++ b/src/app/clusters/network-commissioning/network-commissioning.cpp @@ -519,8 +519,6 @@ void Instance::OnFinished(Status status, CharSpan debugText, ThreadScanResponseI } mLastNetworkingStatusValue.SetNonNull(status); - mLastConnectErrorValue.SetNull(); - mLastNetworkIDLen = 0; TLV::TLVWriter * writer; TLV::TLVType listContainerType; @@ -633,8 +631,6 @@ void Instance::OnFinished(Status status, CharSpan debugText, WiFiScanResponseIte } mLastNetworkingStatusValue.SetNonNull(status); - mLastConnectErrorValue.SetNull(); - mLastNetworkIDLen = 0; TLV::TLVWriter * writer; TLV::TLVType listContainerType;