We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e22c5 commit fa67a55Copy full SHA for fa67a55
include/zephyr/bluetooth/hci_types.h
@@ -363,6 +363,7 @@ struct bt_hci_cmd_hdr {
363
364
/* OpCode Group Fields */
365
#define BT_OGF_LINK_CTRL 0x01
366
+#define BT_OGF_LINK_POLICY 0x02
367
#define BT_OGF_BASEBAND 0x03
368
#define BT_OGF_INFO 0x04
369
#define BT_OGF_STATUS 0x05
@@ -558,6 +559,12 @@ struct bt_hci_cp_io_capability_neg_reply {
558
559
uint8_t reason;
560
} __packed;
561
562
+#define BT_HCI_OP_SWITCH_ROLE BT_OP(BT_OGF_LINK_POLICY, 0x000b)
563
+struct bt_hci_cp_switch_role {
564
+ bt_addr_t bdaddr;
565
+ uint8_t role;
566
+} __packed;
567
+
568
#define BT_HCI_OP_SET_EVENT_MASK BT_OP(BT_OGF_BASEBAND, 0x0001) /* 0x0c01 */
569
struct bt_hci_cp_set_event_mask {
570
uint8_t events[8];
0 commit comments