Bluetooth: hci_usb: Add implementation of Read/Set USB Transport Mode

This implements Read/Set USB Transport Mode in the Bluetooth class.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2020-02-24 23:55:07 -08:00 committed by Johan Hedberg
commit b4e71014f2
5 changed files with 251 additions and 12 deletions

View file

@ -184,6 +184,23 @@ struct bt_hci_rp_vs_read_tx_power_level {
s8_t tx_power_level;
} __packed;
#define BT_HCI_OP_VS_READ_USB_TRANSPORT_MODE BT_OP(BT_OGF_VS, 0x0010)
struct bt_hci_rp_vs_read_usb_transport_mode {
u8_t status;
u8_t num_supported_modes;
u8_t supported_mode[0];
} __packed;
#define BT_HCI_VS_USB_H2_MODE 0x00
#define BT_HCI_VS_USB_H4_MODE 0x01
#define BT_HCI_OP_VS_SET_USB_TRANSPORT_MODE BT_OP(BT_OGF_VS, 0x0011)
struct bt_hci_cp_vs_set_usb_transport_mode {
u8_t mode;
} __packed;
/* Events */
struct bt_hci_evt_vs {