monitor: Add support for decoding inquiry response notification

This commit is contained in:
Marcel Holtmann 2013-12-22 07:51:49 -08:00
parent 9bc70e63b1
commit 2b62aff173
2 changed files with 16 additions and 1 deletions

View File

@ -2025,6 +2025,12 @@ struct bt_hci_evt_slave_broadcast_channel_map_change {
uint8_t map[10];
} __attribute__ ((packed));
#define BT_HCI_EVT_INQUIRY_RESPONSE_NOTIFY 0x56
struct bt_hci_evt_inquiry_response_notify {
uint8_t lap[3];
int8_t rssi;
} __attribute__ ((packed));
#define BT_HCI_EVT_AUTH_PAYLOAD_TIMEOUT_EXPIRED 0x57
struct bt_hci_evt_auth_payload_timeout_expired {
uint16_t handle;

View File

@ -6670,6 +6670,14 @@ static void slave_broadcast_channel_map_change_evt(const void *data, uint8_t siz
print_channel_map(evt->map);
}
static void inquiry_response_notify_evt(const void *data, uint8_t size)
{
const struct bt_hci_evt_inquiry_response_notify *evt = data;
print_iac(evt->lap);
print_rssi(evt->rssi);
}
static void auth_payload_timeout_expired_evt(const void *data, uint8_t size)
{
const struct bt_hci_evt_auth_payload_timeout_expired *evt = data;
@ -7003,7 +7011,8 @@ static const struct event_data event_table[] = {
slave_page_response_timeout_evt, 0, true },
{ 0x55, "Connectionless Slave Broadcast Channel Map Change",
slave_broadcast_channel_map_change_evt, 10, true },
{ 0x56, "Inquiry Response Notification" },
{ 0x56, "Inquiry Response Notification",
inquiry_response_notify_evt, 4, true },
{ 0x57, "Authenticated Payload Timeout Expired",
auth_payload_timeout_expired_evt, 2, true },
{ 0xfe, "Testing" },