From 470015331144c36c94b374972252db8eaf5227dd Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Fri, 12 Nov 2021 07:28:27 -0800 Subject: [PATCH] Set commissionee device to active on start of pairing process (#11679) --- src/controller/CHIPDeviceController.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 2e80a0a66a7176..93bbf5a000beb7 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -908,6 +908,9 @@ CHIP_ERROR DeviceCommissioner::PairDevice(NodeId remoteDeviceId, RendezvousParam err = mIDAllocator.Allocate(keyID); SuccessOrExit(err); + // TODO - Remove use of SetActive/IsActive from CommissioneeDeviceProxy + device->SetActive(true); + err = device->GetPairing().Pair(params.GetPeerAddress(), params.GetSetupPINCode(), keyID, exchangeCtxt, this); // Immediately persist the updted mNextKeyID value // TODO maybe remove FreeRendezvousSession() since mNextKeyID is always persisted immediately