From 5299207646eb0588c8daf703bd597363c3bf0159 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Sep 2013 01:51:15 -0700 Subject: [PATCH] monitor: Add decoding for number of supported IAC command --- monitor/packet.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/monitor/packet.c b/monitor/packet.c index c350db1f4..e73548c7b 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -3297,6 +3297,14 @@ static void write_link_supv_timeout_rsp(const void *data, uint8_t size) print_handle(rsp->handle); } +static void read_num_supported_iac_rsp(const void *data, uint8_t size) +{ + const struct bt_hci_rsp_read_num_supported_iac *rsp = data; + + print_status(rsp->status); + print_field("Number of IAC: %d", rsp->num_iac); +} + static void set_afh_host_classification_cmd(const void *data, uint8_t size) { const struct bt_hci_cmd_set_afh_host_classification *cmd = data; @@ -4490,7 +4498,9 @@ static const struct opcode_data opcode_table[] = { { 0x0c37, 89, "Write Link Supervision Timeout", write_link_supv_timeout_cmd, 4, true, write_link_supv_timeout_rsp, 3, true }, - { 0x0c38, 90, "Read Number of Supported IAC" }, + { 0x0c38, 90, "Read Number of Supported IAC", + null_cmd, 0, true, + read_num_supported_iac_rsp, 2, true }, { 0x0c39, 91, "Read Current IAC LAP" }, { 0x0c3a, 92, "Write Current IAC LAP" }, { 0x0c3b, 93, "Read Page Scan Period Mode" }, -- 2.11.0