Skip to content

Commit

Permalink
pw_bluetooth_proxy: Remove LDAP from TODOs
Browse files Browse the repository at this point in the history
Change-Id: Idf6e08be81eea74bf8bdacb96365d84908781c66
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/248493
Reviewed-by: David Rees <[email protected]>
Reviewed-by: Ben Lawson <[email protected]>
Docs-Not-Needed: Ali Saeed <[email protected]>
Commit-Queue: Ali Saeed <[email protected]>
Lint: Lint 🤖 <[email protected]>
  • Loading branch information
acsaeed authored and CQ Bot Account committed Nov 16, 2024
1 parent 7a46cb5 commit b4a75fd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions pw_bluetooth_proxy/l2cap_leu_signaling_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ bool L2capLeUSignalingChannel::OnPduReceived(pw::span<uint8_t> cframe) {
return false;
}

// TODO: saeedali@ - "If a device receives a C-frame that exceeds its
// L2CAP_SIG_MTU_SIZE then it shall send an L2CAP_COMMAND_REJECT_RSP packet
// containing the supported L2CAP_SIG_MTU_SIZE." We should consider taking
// the signaling MTU in the ProxyHost constructor.
// TODO: https://pwbug.dev/360929142 - "If a device receives a C-frame that
// exceeds its L2CAP_SIG_MTU_SIZE then it shall send an
// L2CAP_COMMAND_REJECT_RSP packet containing the supported
// L2CAP_SIG_MTU_SIZE." We should consider taking the signaling MTU in the
// ProxyHost constructor.

// Core Spec v5.4 Vol 3, Part A, 4: "Examples of signaling packets that are
// not correctly formed include... A C-frame on fixed channel 0x0005 contains
Expand Down
4 changes: 2 additions & 2 deletions pw_bluetooth_proxy/proxy_host_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3685,8 +3685,8 @@ TEST(L2capSignalingTest, CreditIndAddressedToNonManagedChannelForwardedToHost) {
EXPECT_EQ(forwards_to_host, 1);
}

// TODO: saeedali@ - Add many more tests exercising queueing + credit-based
// control flow.
// TODO: https://pwbug.dev/360929142 - Add many more tests exercising queueing +
// credit-based control flow.

} // namespace
} // namespace pw::bluetooth::proxy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace pw::bluetooth::proxy {

// TODO: saeedali@ - Also support ProxyAclWriteChannel.
// TODO: https://pwbug.dev/360929142 - Also support L2capWriteChannel.
class BasicL2capChannel : public L2capReadChannel {
public:
explicit BasicL2capChannel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class AclDataChannel {

private:
// An active logical link on LE ACL logical transport.
// TODO: saeedali@ - Encapsulate all logic related to this within a new
// LogicalLinkManager class?
// TODO: https://pwbug.dev/360929142 - Encapsulate all logic related to this
// within a new LogicalLinkManager class?
class LeAclConnection {
public:
LeAclConnection(uint16_t connection_handle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class L2capWriteChannel : public IntrusiveForwardList<L2capWriteChannel>::Item {
L2capWriteChannel(const L2capWriteChannel& other) = delete;
L2capWriteChannel& operator=(const L2capWriteChannel& other) = delete;
L2capWriteChannel(L2capWriteChannel&& other);
// TODO: saeedali@ - Define move assignment operator so write channels can be
// erased from containers.
// TODO: https://pwbug.dev/360929142 - Define move assignment operator so
// write channels can be erased from containers.
L2capWriteChannel& operator=(L2capWriteChannel&& other) = delete;

virtual ~L2capWriteChannel();
Expand Down
4 changes: 2 additions & 2 deletions pw_bluetooth_proxy/public/pw_bluetooth_proxy/l2cap_coc.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class L2capCoc : public L2capWriteChannel, public L2capReadChannel {
};

enum class Event {
// TODO: saeedali@ - Listen for L2CAP_DISCONNECTION_REQ/RSP packets and
// report this event accordingly.
// TODO: https://pwbug.dev/360929142 - Listen for
// L2CAP_DISCONNECTION_REQ/RSP packets and report this event accordingly.
kChannelClosedByOther,
/// An invalid packet was received. The channel is now `kStopped` and should
/// be closed. See error logs for details.
Expand Down

0 comments on commit b4a75fd

Please sign in to comment.