diff --git a/include/btstack/hci_cmds.h b/include/btstack/hci_cmds.h index fc27800ea..90ddda766 100644 --- a/include/btstack/hci_cmds.h +++ b/include/btstack/hci_cmds.h @@ -128,7 +128,7 @@ extern "C" { // 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 // data: event (8), len(8), channel (16) diff --git a/src/l2cap.c b/src/l2cap.c index f0f1bee91..61682c52e 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -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, 13, channel->local_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)); l2cap_dispatch(channel, HCI_EVENT_PACKET, event, sizeof(event)); }