summaryrefslogtreecommitdiff
path: root/monitor/bt.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-02-25 15:20:28 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-03-02 16:22:25 -0800
commit9180ceb0c36a65971596fb3efc70b2e958f2327b (patch)
treec6a178369b25748b427542b4dfeaef80d67a7c9d /monitor/bt.h
parent1f8bab677d4c464a3a75e4ee4daa3ad1333268bc (diff)
downloadbluez-9180ceb0c36a65971596fb3efc70b2e958f2327b.tar.gz
monitor: Add support for decoding Read Local Supported Codec Capabilities
< HCI Command: Read Local Supported Codec Capabilities (0x04|0x000e) plen 7 Codec ID: mSBC (0x05) Logical Transport Type: 0x02 Codec supported over BR/EDR SCO and eSCO Direction: Input (Host to Controller) (0x00) > HCI Event: Command Complete (0x0e) plen 5 Read Local Supported Codec Capabilities (0x04|0x000e) ncmd 1 Status: Success (0x00) Number of codec capabilities: 0
Diffstat (limited to 'monitor/bt.h')
-rw-r--r--monitor/bt.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/monitor/bt.h b/monitor/bt.h
index afb0deaf5..21ee67fed 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -1792,6 +1792,27 @@ struct bt_hci_rsp_read_local_codecs_v2 {
struct bt_hci_codec codec[0];
} __attribute__ ((packed));
+#define BT_HCI_CMD_READ_LOCAL_CODEC_CAPS 0x100e
+#define BT_HCI_BIT_READ_LOCAL_CODEC_CAPS BT_HCI_CMD_BIT(45, 3)
+struct bt_hci_cmd_read_local_codec_caps {
+ uint8_t codec_id;
+ uint16_t codec_cid;
+ uint16_t codec_vid;
+ uint8_t transport;
+ uint8_t dir;
+} __attribute__ ((packed));
+
+struct bt_hci_codec_caps {
+ uint8_t len;
+ uint8_t data[0];
+} __attribute__ ((packed));
+
+struct bt_hci_rsp_read_local_codec_caps {
+ uint8_t status;
+ uint8_t num;
+ struct bt_hci_codec_caps caps[0];
+} __attribute__ ((packed));
+
#define BT_HCI_CMD_READ_FAILED_CONTACT_COUNTER 0x1401
struct bt_hci_cmd_read_failed_contact_counter {
uint16_t handle;