Skip to content

Commit

Permalink
Merge pull request #188 from ivmarkov/supports-conc-conn
Browse files Browse the repository at this point in the history
Re-introduce supports-concurrent-connections
  • Loading branch information
kedars committed Jun 13, 2024
2 parents 3fbc047 + bac8d45 commit 2076dc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion rs-matter/src/data_model/root_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ where
EthNwCommCluster::new(*matter.borrow()),
ethernet_nw_diagnostics::ID,
EthNwDiagCluster::new(*matter.borrow()),
true,
)
}

Expand All @@ -138,6 +139,7 @@ pub fn handler<'a, NWCOMM, NWDIAG, T>(
nwcomm: NWCOMM,
nwdiag_id: u32,
nwdiag: NWDIAG,
supports_concurrent_connection: bool,
) -> RootEndpointHandler<'a, NWCOMM, NWDIAG>
where
T: Borrow<BasicInfoConfig<'a>>
Expand Down Expand Up @@ -167,6 +169,7 @@ where
nwcomm,
nwdiag_id,
nwdiag,
supports_concurrent_connection,
)
}

Expand All @@ -186,6 +189,7 @@ fn wrap<'a, NWCOMM, NWDIAG>(
nwcomm: NWCOMM,
nwdiag_id: u32,
nwdiag: NWDIAG,
supports_concurrent_connection: bool,
) -> RootEndpointHandler<'a, NWCOMM, NWDIAG> {
EmptyHandler
.chain(
Expand Down Expand Up @@ -225,7 +229,11 @@ fn wrap<'a, NWCOMM, NWDIAG>(
.chain(
endpoint_id,
general_commissioning::ID,
HandlerCompat(GenCommCluster::new(failsafe, false, rand)),
HandlerCompat(GenCommCluster::new(
failsafe,
supports_concurrent_connection,
rand,
)),
)
.chain(
endpoint_id,
Expand Down
2 changes: 1 addition & 1 deletion rs-matter/src/transport/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl<'m> TransportMgr<'m> {
send,
recv,
&PacketBufferExternalAccess(&self.tx),
PacketBufferExternalAccess(&self.rx),
&PacketBufferExternalAccess(&self.rx),
host,
interface,
self.rand,
Expand Down

0 comments on commit 2076dc6

Please sign in to comment.