@@ -422,7 +422,7 @@ void DeviceController::Shutdown()
422422
423423 if (mDeleteFromFabricTableOnShutdown )
424424 {
425- mSystemState ->Fabrics ()->Delete (mFabricIndex );
425+ TEMPORARY_RETURN_IGNORED mSystemState ->Fabrics ()->Delete (mFabricIndex );
426426 }
427427 else if (mRemoveFromFabricTableOnShutdown )
428428 {
@@ -577,8 +577,9 @@ void DeviceCommissioner::Shutdown()
577577 }
578578#endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY
579579#if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
580- WiFiPAF::WiFiPAFLayer::GetWiFiPAFLayer ().Shutdown (
581- [](uint32_t id, WiFiPAF::WiFiPafRole role) { DeviceLayer::ConnectivityMgr ().WiFiPAFShutdown (id, role); });
580+ WiFiPAF::WiFiPAFLayer::GetWiFiPAFLayer ().Shutdown ([](uint32_t id, WiFiPAF::WiFiPafRole role) {
581+ TEMPORARY_RETURN_IGNORED DeviceLayer::ConnectivityMgr ().WiFiPAFShutdown (id, role);
582+ });
582583#endif
583584
584585 // Release everything from the commissionee device pool here.
@@ -639,7 +640,7 @@ void DeviceCommissioner::ReleaseCommissioneeDevice(CommissioneeDeviceProxy * dev
639640 if (readerTransport)
640641 {
641642 ChipLogProgress (Controller, " Stopping discovery of all NFC tags" );
642- readerTransport->StopDiscoveringTags ();
643+ TEMPORARY_RETURN_IGNORED readerTransport->StopDiscoveringTags ();
643644 }
644645#endif
645646
@@ -814,21 +815,18 @@ CHIP_ERROR DeviceCommissioner::EstablishPASEConnection(NodeId remoteDeviceId, Re
814815 // The RendezvousParameters argument needs to be recovered if the search succeed, so save them
815816 // for later.
816817 mRendezvousParametersForDeviceDiscoveredOverBle = params;
817- SuccessOrExit (err = mSystemState ->BleLayer ()->NewBleConnectionByObject (params.GetDiscoveredObject (), this ,
818- OnDiscoveredDeviceOverBleSuccess,
819- OnDiscoveredDeviceOverBleError));
820- ExitNow (CHIP_NO_ERROR);
818+ ExitNow (err = mSystemState ->BleLayer ()->NewBleConnectionByObject (
819+ params.GetDiscoveredObject (), this , OnDiscoveredDeviceOverBleSuccess, OnDiscoveredDeviceOverBleError));
821820 }
822821 else if (params.HasDiscriminator ())
823822 {
824823 // The RendezvousParameters argument needs to be recovered if the search succeed, so save them
825824 // for later.
826825 mRendezvousParametersForDeviceDiscoveredOverBle = params;
827826
828- SuccessOrExit (err = mSystemState ->BleLayer ()->NewBleConnectionByDiscriminator (params.GetSetupDiscriminator ().value (),
829- this , OnDiscoveredDeviceOverBleSuccess,
830- OnDiscoveredDeviceOverBleError));
831- ExitNow (CHIP_NO_ERROR);
827+ ExitNow (err = mSystemState ->BleLayer ()->NewBleConnectionByDiscriminator (params.GetSetupDiscriminator ().value (), this ,
828+ OnDiscoveredDeviceOverBleSuccess,
829+ OnDiscoveredDeviceOverBleError));
832830 }
833831 else
834832 {
@@ -854,9 +852,8 @@ CHIP_ERROR DeviceCommissioner::EstablishPASEConnection(NodeId remoteDeviceId, Re
854852 .discriminator = discriminator };
855853 ReturnErrorOnFailure (
856854 DeviceLayer::ConnectivityMgr ().GetWiFiPAF ()->AddPafSession (WiFiPAF::PafInfoAccess::kAccNodeInfo , sessionInfo));
857- DeviceLayer::ConnectivityMgr ().WiFiPAFSubscribe (discriminator, reinterpret_cast <void *>(this ),
858- OnWiFiPAFSubscribeComplete, OnWiFiPAFSubscribeError);
859- ExitNow (CHIP_NO_ERROR);
855+ ExitNow (err = DeviceLayer::ConnectivityMgr ().WiFiPAFSubscribe (discriminator, reinterpret_cast <void *>(this ),
856+ OnWiFiPAFSubscribeComplete, OnWiFiPAFSubscribeError));
860857 }
861858 }
862859#endif
@@ -1004,7 +1001,7 @@ CHIP_ERROR DeviceCommissioner::Commission(NodeId remoteDeviceId)
10041001 if (device->IsSecureConnected ())
10051002 {
10061003 MATTER_LOG_METRIC_BEGIN (kMetricDeviceCommissionerCommission );
1007- mDefaultCommissioner ->StartCommissioning (this , device);
1004+ ReturnErrorOnFailure ( mDefaultCommissioner ->StartCommissioning (this , device) );
10081005 }
10091006 else
10101007 {
@@ -1223,7 +1220,7 @@ void DeviceCommissioner::OnSessionEstablished(const SessionHandle & session)
12231220 CHIP_ERROR err = device->SetConnected (session);
12241221 if (err != CHIP_NO_ERROR)
12251222 {
1226- ChipLogError ( Controller, " Failed in setting up secure channel: % " CHIP_ERROR_FORMAT, err. Format () );
1223+ ChipLogFailure (err, Controller, " Failed in setting up secure channel" );
12271224 OnSessionEstablishmentError (err);
12281225 return ;
12291226 }
@@ -1244,7 +1241,7 @@ void DeviceCommissioner::OnSessionEstablished(const SessionHandle & session)
12441241 {
12451242 mRunCommissioningAfterConnection = false ;
12461243 MATTER_LOG_METRIC_BEGIN (kMetricDeviceCommissionerCommission );
1247- mDefaultCommissioner ->StartCommissioning (this , device);
1244+ ReturnAndLogOnFailure ( mDefaultCommissioner ->StartCommissioning (this , device), Controller, " Failed to start commissioning " );
12481245 }
12491246}
12501247
@@ -1915,7 +1912,7 @@ CHIP_ERROR DeviceCommissioner::SetUdcListenPort(uint16_t listenPort)
19151912void DeviceCommissioner::FindCommissionableNode (char * instanceName)
19161913{
19171914 Dnssd::DiscoveryFilter filter (Dnssd::DiscoveryFilterType::kInstanceName , instanceName);
1918- DiscoverCommissionableNodes (filter);
1915+ TEMPORARY_RETURN_IGNORED DiscoverCommissionableNodes (filter);
19191916}
19201917
19211918#endif // CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY
0 commit comments