Skip to content

Commit

Permalink
pw_bluetooth: Add DISCONNECTION_REQ to l2cap definitions
Browse files Browse the repository at this point in the history
Bug: b/360929142
Change-Id: I2b3a4a1ba6dbfeccfbe58e5d0c5a24380e9644bf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/249712
Reviewed-by: Ben Lawson <[email protected]>
Commit-Queue: Austin Foxley <[email protected]>
Reviewed-by: David Rees <[email protected]>
Pigweed-Auto-Submit: Austin Foxley <[email protected]>
Docs-Not-Needed: Ben Lawson <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Lint: Lint 🤖 <[email protected]>
  • Loading branch information
afoxley authored and CQ Bot Account committed Nov 21, 2024
1 parent 2944c9a commit 8a31009
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pw_bluetooth/public/pw_bluetooth/l2cap_frames.emb
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,22 @@ struct L2capConnectionRsp:
-- The status of the connection.


struct L2capDisconnectionReq:
-- Section 4.6
-- Once an L2CAP_DISCONNECTION_REQ packet is issued, all incoming data in
-- transit on this L2CAP channel shall be discarded and any new additional
-- outgoing data shall be discarded.
[requires: command_header.code == L2capSignalingPacketCode.DISCONNECTION_REQ]
0 [+L2capSignalingCommandHeader.$size_in_bytes] L2capSignalingCommandHeader command_header
$next [+2] UInt destination_cid
-- The endpoint of the channel to be disconnected on the device receiving
-- this request.

$next [+2] UInt source_cid
-- The endpoint of the channel to be disconnected on the device sending this
-- request.


struct L2capDisconnectionRsp:
-- Section 4.7
-- L2CAP_DISCONNECTION_RSP packets shall be sent in response to each valid
Expand Down

0 comments on commit 8a31009

Please sign in to comment.