Skip to content

Commit f1ee04f

Browse files
committed
initialized the node id and fabric index of event data for PASE session
1 parent 4ea2094 commit f1ee04f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/protocols/secure_channel/PairingSession.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ void PairingSession::Finish()
8686
event.SecureSessionEstablished.TransportType = to_underlying(address.GetTransportType());
8787
event.SecureSessionEstablished.SecureSessionType =
8888
to_underlying(mSecureSessionHolder->AsSecureSession()->GetSecureSessionType());
89-
if (mSecureSessionHolder->AsSecureSession()->GetSecureSessionType() == Transport::SecureSession::Type::kCASE)
90-
{
91-
event.SecureSessionEstablished.PeerNodeId = mSecureSessionHolder->GetPeer().GetNodeId();
92-
event.SecureSessionEstablished.FabricIndex = mSecureSessionHolder->GetPeer().GetFabricIndex();
93-
}
89+
event.SecureSessionEstablished.PeerNodeId = mSecureSessionHolder->GetPeer().GetNodeId();
90+
event.SecureSessionEstablished.FabricIndex = mSecureSessionHolder->GetPeer().GetFabricIndex();
9491
if (DeviceLayer::PlatformMgr().PostEvent(&event) != CHIP_NO_ERROR)
9592
{
9693
ChipLogError(SecureChannel, "Failed to post Secure Session established event");

0 commit comments

Comments
 (0)