diff --git a/CHANGELOG.md b/CHANGELOG.md index 79c3e5650..314286912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - HCI: fix remove le device from whitelist +- L2CAP: make l2cap_get_remote_mtu_for_local_cid available to LE-only builds - HFP: use 'don't care' to accept SCO connections, fixes issue on ESP32 - HFP: fix LC3-WB init - HFP AG: fix setup of audio connection in service level established event diff --git a/src/l2cap.c b/src/l2cap.c index ce15cfce9..6ab9bb945 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -1364,11 +1364,14 @@ bool l2cap_can_send_prepared_packet_now(uint16_t local_cid){ return hci_can_send_prepared_acl_packet_now(channel->con_handle); } +#endif + +#ifdef L2CAP_USES_CHANNELS uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid){ l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid); if (channel) { return channel->remote_mtu; - } + } return 0; } #endif