Skip to content

Commit fa67a55

Browse files
bluetooth: add BT_HCI_OP_SWITCH_ROLE
add BT_HCI_OP_SWITCH_ROLE and struct bt_hci_cp_switch_role Signed-off-by: Mark Wang <[email protected]>
1 parent 62e22c5 commit fa67a55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/zephyr/bluetooth/hci_types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ struct bt_hci_cmd_hdr {
363363

364364
/* OpCode Group Fields */
365365
#define BT_OGF_LINK_CTRL 0x01
366+
#define BT_OGF_LINK_POLICY 0x02
366367
#define BT_OGF_BASEBAND 0x03
367368
#define BT_OGF_INFO 0x04
368369
#define BT_OGF_STATUS 0x05
@@ -558,6 +559,12 @@ struct bt_hci_cp_io_capability_neg_reply {
558559
uint8_t reason;
559560
} __packed;
560561

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+
561568
#define BT_HCI_OP_SET_EVENT_MASK BT_OP(BT_OGF_BASEBAND, 0x0001) /* 0x0c01 */
562569
struct bt_hci_cp_set_event_mask {
563570
uint8_t events[8];

0 commit comments

Comments
 (0)