Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Remove another packed struct
Browse files Browse the repository at this point in the history
Remove packed struct ChangeConnectionLinkKeyCompleteEventParams
and use emboss references instead.

Bug: b/42167863
Test: pw presubmit --step gn_chre_googletest_nanopb_sapphire_build
Change-Id: I28f04b672d0f0ccf7d2589eb7735d146b8487a31
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/246313
Commit-Queue: Josh Conner <[email protected]>
Docs-Not-Needed: Josh Conner <[email protected]>
Reviewed-by: Jason Graffius <[email protected]>
Lint: Lint 🤖 <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
  • Loading branch information
josh-conner authored and CQ Bot Account committed Nov 4, 2024
1 parent 0634370 commit d557e7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion pw_bluetooth_sapphire/host/transport/control_packets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool EventPacket::ToStatusCode(

switch (event_code()) {
CASE_EMBOSS_EVENT_STATUS(AuthenticationComplete);
CASE_EVENT_STATUS(ChangeConnectionLinkKeyComplete);
CASE_EMBOSS_EVENT_STATUS(ChangeConnectionLinkKeyComplete);
CASE_EVENT_STATUS(CommandComplete);
CASE_EVENT_STATUS(CommandStatus);
CASE_EMBOSS_EVENT_STATUS(ConnectionComplete);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,15 +506,6 @@ constexpr EventCode kEncryptionChangeEventCode = 0x08;
// Change Connection Link Key Complete Event (v1.1) (BR/EDR)
constexpr EventCode kChangeConnectionLinkKeyCompleteEventCode = 0x09;

struct ChangeConnectionLinkKeyCompleteEventParams {
// See enum StatusCode in hci_constants.h.
StatusCode status;

// Connection_Handle (only the lower 12-bits are meaningful).
// Range: 0x0000 to kConnectionHandleMax in hci_constants.h
ConnectionHandle connection_handle;
} __attribute__((packed));

// =============================================================
// Read Remote Supported Features Complete Event (v1.1) (BR/EDR)
constexpr EventCode kReadRemoteSupportedFeaturesCompleteEventCode = 0x0B;
Expand Down

0 comments on commit d557e7f

Please sign in to comment.