static void print_rssi(int8_t rssi)
{
- packet_print_rssi(rssi);
+ packet_print_rssi("RSSI", rssi);
}
static void print_sco_routing(uint8_t routing)
static void print_rssi(int8_t rssi)
{
- if ((uint8_t) rssi == 0x99 || rssi == 127)
- print_field("RSSI: invalid (0x%2.2x)", (uint8_t) rssi);
- else
- print_field("RSSI: %d dBm (0x%2.2x)", rssi, (uint8_t) rssi);
+ packet_print_rssi("RSSI", rssi);
}
static void print_slot_625(const char *label, uint16_t value)
print_handle_native(handle);
}
-void packet_print_rssi(int8_t rssi)
+void packet_print_rssi(const char *label, int8_t rssi)
{
- print_rssi(rssi);
+ if ((uint8_t) rssi == 0x99 || rssi == 127)
+ print_field("%s: invalid (0x%2.2x)", label, (uint8_t) rssi);
+ else
+ print_field("%s: %d dBm (0x%2.2x)", label, rssi,
+ (uint8_t) rssi);
}
void packet_print_ad(const void *data, uint8_t size)
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_handle(uint16_t handle);
-void packet_print_rssi(int8_t rssi);
+void packet_print_rssi(const char *label, int8_t rssi);
void packet_print_ad(const void *data, uint8_t size);
void packet_print_features_lmp(const uint8_t *features, uint8_t page);
void packet_print_features_ll(const uint8_t *features);