monitor: Decode LE CTE Request Failed event
authorSzymon Czapracki <szymon.czapracki@codecoup.pl>
Wed, 8 Jan 2020 11:47:52 +0000 (12:47 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:48 +0000 (14:30 +0530)
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/bt.h
monitor/packet.c

index 1859dfb..b31e6c5 100755 (executable)
@@ -3177,6 +3177,12 @@ struct bt_hci_evt_le_chan_select_alg {
        uint8_t  algorithm;
 } __attribute__ ((packed));
 
+#define BT_HCI_EVT_LE_CTE_REQUEST_FAILED       0x17
+struct bt_hci_evt_le_cte_request_failed {
+       uint8_t  status;
+       uint16_t handle;
+} __attribute__ ((packed));
+
 #define BT_HCI_EVT_LE_PER_ADV_SYNC_TRANS_REC           0x18
 struct bt_hci_evt_le_per_adv_sync_trans_rec {
        uint8_t  status;
index 2b0d163..ed8a5c1 100755 (executable)
@@ -9892,6 +9892,14 @@ static void le_chan_select_alg_evt(const void *data, uint8_t size)
        print_field("Algorithm: %s (0x%2.2x)", str, evt->algorithm);
 }
 
+static void le_cte_request_failed_evt(const void *data, uint8_t size)
+{
+       const struct bt_hci_evt_le_cte_request_failed *evt = data;
+
+       print_status(evt->status);
+       print_field("Connection handle: %d", evt->handle);
+}
+
 static void le_per_adv_sync_trans_rec_evt(const void *data, uint8_t size)
 {
        const struct bt_hci_evt_le_per_adv_sync_trans_rec *evt = data;
@@ -9993,6 +10001,8 @@ static const struct subevent_data le_meta_event_table[] = {
                                le_scan_req_received_evt, 8, true},
        { 0x14, "LE Channel Selection Algorithm",
                                le_chan_select_alg_evt, 3, true},
+       { 0x17, "LE CTE Request Failed",
+                               le_cte_request_failed_evt, 3, true},
        { 0x18, "LE Periodic Advertising Sync Transfer Received",
                                        le_per_adv_sync_trans_rec_evt, 19,
                                        true},