emulator: Add stub for completed packets event to bthost

This commit is contained in:
Johan Hedberg 2013-05-26 16:04:36 +01:00
parent c0f2462620
commit f7bd0a702e

View File

@ -347,6 +347,15 @@ static void evt_conn_complete(struct bthost *bthost, const void *data,
return;
}
static void evt_num_completed_packets(struct bthost *bthost, const void *data,
uint8_t len)
{
const struct bt_hci_evt_num_completed_packets *ev = data;
if (len < sizeof(*ev))
return;
}
static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
{
const struct bt_hci_evt_hdr *hdr = data;
@ -377,6 +386,10 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
evt_conn_complete(bthost, param, hdr->plen);
break;
case BT_HCI_EVT_NUM_COMPLETED_PACKETS:
evt_num_completed_packets(bthost, param, hdr->plen);
break;
default:
printf("Unsupported event 0x%2.2x\n", hdr->evt);
break;