From 9570f9e17fbd35c66ac12782c40af8704b7870e8 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 25 Aug 2013 19:41:28 -0700 Subject: [PATCH] monitor: Export printing functions for LL features and channel map --- monitor/packet.c | 10 ++++++++++ monitor/packet.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/monitor/packet.c b/monitor/packet.c index bc6861b08..17bd11892 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -1585,6 +1585,11 @@ static void print_features(uint8_t page, const uint8_t *features_array, "(0x%16.16" PRIx64 ")", mask); } +void packet_print_features_ll(const uint8_t *features) +{ + print_features(0, features, 0x01); +} + static const struct { uint8_t bit; const char *str; @@ -1670,6 +1675,11 @@ static void print_le_channel_map(const uint8_t *map) print_field("Channel map: 0x%s", str); } +void packet_print_channel_map_ll(const uint8_t *map) +{ + print_le_channel_map(map); +} + static void print_random_number(const uint8_t *number) { print_hex_field("Random number", number, 8); diff --git a/monitor/packet.h b/monitor/packet.h index 31b182a17..411983aae 100644 --- a/monitor/packet.h +++ b/monitor/packet.h @@ -44,6 +44,8 @@ void packet_print_version(const char *label, uint8_t version, uint16_t revision) void packet_print_company(const char *label, uint16_t company); void packet_print_addr(const char *label, const void *data, bool random); void packet_print_ad(const void *data, uint8_t size); +void packet_print_features_ll(const uint8_t *features); +void packet_print_channel_map_ll(const uint8_t *map); void packet_control(struct timeval *tv, uint16_t index, uint16_t opcode, const void *data, uint16_t size);