Skip to content

Commit 3134a1c

Browse files
committed
bluetooth: hci: Add data fields to event and meta event structs
Those flexible arrays allow for easy access to event data. Signed-off-by: Szymon Janc <[email protected]>
1 parent 727c15a commit 3134a1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/zephyr/bluetooth/hci_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ struct bt_hci_sco_hdr {
6060
struct bt_hci_evt_hdr {
6161
uint8_t evt;
6262
uint8_t len;
63+
uint8_t data[];
6364
} __packed;
6465
#define BT_HCI_EVT_HDR_SIZE 2
6566

@@ -3178,6 +3179,7 @@ struct bt_hci_evt_user_passkey_notify {
31783179
#define BT_HCI_EVT_LE_META_EVENT 0x3e
31793180
struct bt_hci_evt_le_meta_event {
31803181
uint8_t subevent;
3182+
uint8_t data[];
31813183
} __packed;
31823184

31833185
#define BT_HCI_EVT_AUTH_PAYLOAD_TIMEOUT_EXP 0x57

0 commit comments

Comments
 (0)