mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
l2cap: make l2cap_get_remote_mtu_for_local_cid available to LE-only builds
This commit is contained in:
parent
8b631c133a
commit
42c7a7b810
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- HCI: fix remove le device from whitelist
|
- 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: use 'don't care' to accept SCO connections, fixes issue on ESP32
|
||||||
- HFP: fix LC3-WB init
|
- HFP: fix LC3-WB init
|
||||||
- HFP AG: fix setup of audio connection in service level established event
|
- HFP AG: fix setup of audio connection in service level established event
|
||||||
|
@ -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);
|
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){
|
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);
|
l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid);
|
||||||
if (channel) {
|
if (channel) {
|
||||||
return channel->remote_mtu;
|
return channel->remote_mtu;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user