bluetooth: host: Added handler for data buffer overflow
Added event handler to prio_events in hci_core.c. Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
parent
d9251a83a0
commit
51e4acb8e0
1 changed files with 10 additions and 0 deletions
|
@ -646,6 +646,13 @@ static void hci_acl(struct net_buf *buf)
|
|||
bt_conn_unref(conn);
|
||||
}
|
||||
|
||||
static void hci_data_buf_overflow(struct net_buf *buf)
|
||||
{
|
||||
struct bt_hci_evt_data_buf_overflow *evt = (void *)buf->data;
|
||||
|
||||
BT_WARN("Data buffer overflow (link type 0x%02x)", evt->link_type);
|
||||
}
|
||||
|
||||
static void hci_num_completed_packets(struct net_buf *buf)
|
||||
{
|
||||
struct bt_hci_evt_num_completed_packets *evt = (void *)buf->data;
|
||||
|
@ -4870,6 +4877,9 @@ static const struct event_handler prio_events[] = {
|
|||
EVENT_HANDLER(BT_HCI_EVT_CMD_STATUS, hci_cmd_status,
|
||||
sizeof(struct bt_hci_evt_cmd_status)),
|
||||
#if defined(CONFIG_BT_CONN)
|
||||
EVENT_HANDLER(BT_HCI_EVT_DATA_BUF_OVERFLOW,
|
||||
hci_data_buf_overflow,
|
||||
sizeof(struct bt_hci_evt_data_buf_overflow)),
|
||||
EVENT_HANDLER(BT_HCI_EVT_NUM_COMPLETED_PACKETS,
|
||||
hci_num_completed_packets,
|
||||
sizeof(struct bt_hci_evt_num_completed_packets)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue