l2cap: make l2cap_get_remote_mtu_for_local_cid available to LE-only builds

This commit is contained in:
Matthias Ringwald 2023-09-11 16:08:39 +02:00
parent 8b631c133a
commit 42c7a7b810
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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