From eccc0ab7de1351338277dc50ecfa0d86e8d5fc0f Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Mon, 24 Oct 2022 18:04:46 +0200 Subject: [PATCH] Mark UnauthenticatedSession active when initiating a PASE session (#23316) --- src/protocols/secure_channel/PASESession.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/protocols/secure_channel/PASESession.cpp b/src/protocols/secure_channel/PASESession.cpp index 05fc3b38915983..67b462fa860838 100644 --- a/src/protocols/secure_channel/PASESession.cpp +++ b/src/protocols/secure_channel/PASESession.cpp @@ -212,6 +212,10 @@ CHIP_ERROR PASESession::Pair(SessionManager & sessionManager, uint32_t peerSetUp mRole = CryptoContext::SessionRole::kInitiator; mExchangeCtxt = exchangeCtxt; + + // When commissioning starts, the peer is assumed to be active. + mExchangeCtxt->GetSessionHandle()->AsUnauthenticatedSession()->MarkActiveRx(); + mExchangeCtxt->SetResponseTimeout(kSpake2p_Response_Timeout + mExchangeCtxt->GetSessionHandle()->GetAckTimeout()); mLocalMRPConfig = mrpLocalConfig;