diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2019-02-27 13:19:11 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2019-03-07 09:37:13 +0200 |
commit | 272738dc13b59d16b09c7b0b62534b80cf7cae28 (patch) | |
tree | 151804bd816fdf28bf50a129ffb33fb7d572b340 /monitor/ll.c | |
parent | 4ccb9ce23121731bc854816e74ab476354bc269c (diff) | |
download | bluez-272738dc13b59d16b09c7b0b62534b80cf7cae28.tar.gz |
monitor: Decode LL_CLOCK_ACCURACY_*
This introduces the command passing for LL_CLOCK_ACCURACY_* PDUs added
in 5.1.
Diffstat (limited to 'monitor/ll.c')
-rw-r--r-- | monitor/ll.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/monitor/ll.c b/monitor/ll.c index 712c383a6..5141f2be6 100644 --- a/monitor/ll.c +++ b/monitor/ll.c @@ -594,6 +594,13 @@ static void periodic_sync_ind(const void *data, uint8_t size) print_field("syncConnEventCount: 0x%4.4x", pdu->sync_counter); } +static void clock_acc_req_rsp(const void *data, uint8_t size) +{ + const struct bt_ll_clock_acc *pdu = data; + + print_field("SCA: 0x%2.2x", pdu->sca); +} + struct llcp_data { uint8_t opcode; const char *str; @@ -632,6 +639,8 @@ static const struct llcp_data llcp_table[] = { { 0x1a, "LL_CTE_REQ", cte_req, 1, true }, { 0x1b, "LL_CTE_RSP", null_pdu, 0, true }, { 0x1c, "LL_PERIODIC_SYNC_IND", periodic_sync_ind, 34, true }, + { 0x1d, "LL_CLOCK_ACCURACY_REQ", clock_acc_req_rsp, 1, true }, + { 0x1e, "LL_CLOCK_ACCURACY_RSP", clock_acc_req_rsp, 1, true }, { } }; |