mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 16:54:38 +08:00
emulator: Add stub for completed packets event to bthost
This commit is contained in:
parent
c0f2462620
commit
f7bd0a702e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user