commit | b3efe3dabf195623b558de9aa55417126b84b150 | [log] [tgz] |
---|---|---|
author | Xo Wang <xow@google.com> | Wed Jun 05 22:56:48 2019 +0000 |
committer | Rob Mohr <mohrr@google.com> | Thu Nov 16 10:57:45 2023 -0800 |
tree | d46ad150f042a78015470fa7e25699248dbcd4f6 | |
parent | 44ff0ab40181dbedb935fbc98c4c7c0ad865f73c [diff] |
[bt][l2cap] Block channel ID reuse on Disconnection Complete Added a DisconnectDoneCallback parameter to DynamicChannel::Disconnect that is called when the L2CAP Disconnection Response is received from the peer. Wire up the callback to DynamicChannelRegistry::RemoveChannel so that performs channel cleanup after disconnection completes. This improves Wireshark display of locally-snooped data because a channel opened immediately after closing another channel will have different ID. BT-811 #done Test: In bt-host-unitttests, L2CAP_DynamicChannelRegistryTest.ChannelIdNotReusedUntilDisconnectionCompletes L2CAP_BrEdrDynamicChannelTest.ChannelIdNotReusedUntilDisconnectionCompletes Change-Id: Ib406d84bfa96bea55ea116d86a2601a88b98380a
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.