mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-12 15:47:14 +00:00
emit l2cap mtus, too
This commit is contained in:
parent
1d279b2064
commit
4c98aa43c7
@ -128,7 +128,7 @@ extern "C" {
|
|||||||
|
|
||||||
// L2CAP EVENTS
|
// L2CAP EVENTS
|
||||||
|
|
||||||
// data: event (8), len(8), status (8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16)
|
// data: event (8), len(8), status (8), address(48), handle (16), psm (16), local_cid(16), remote_cid (16), local_mtu(16), remote_mtu(16)
|
||||||
#define L2CAP_EVENT_CHANNEL_OPENED 0x70
|
#define L2CAP_EVENT_CHANNEL_OPENED 0x70
|
||||||
|
|
||||||
// data: event (8), len(8), channel (16)
|
// data: event (8), len(8), channel (16)
|
||||||
|
@ -109,6 +109,8 @@ void l2cap_emit_channel_opened(l2cap_channel_t *channel, uint8_t status) {
|
|||||||
bt_store_16(event, 11, channel->psm);
|
bt_store_16(event, 11, channel->psm);
|
||||||
bt_store_16(event, 13, channel->local_cid);
|
bt_store_16(event, 13, channel->local_cid);
|
||||||
bt_store_16(event, 15, channel->remote_cid);
|
bt_store_16(event, 15, channel->remote_cid);
|
||||||
|
bt_store_16(event, 17, channel->local_mtu);
|
||||||
|
bt_store_16(event, 19, channel->remote_mtu);
|
||||||
hci_dump_packet( HCI_EVENT_PACKET, 0, event, sizeof(event));
|
hci_dump_packet( HCI_EVENT_PACKET, 0, event, sizeof(event));
|
||||||
l2cap_dispatch(channel, HCI_EVENT_PACKET, event, sizeof(event));
|
l2cap_dispatch(channel, HCI_EVENT_PACKET, event, sizeof(event));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user