added l2cap_get_remote_mtu_for_local_cid

This commit is contained in:
matthias.ringwald 2010-06-18 20:31:05 +00:00
parent 562ffe5632
commit 96cbd66294
2 changed files with 9 additions and 0 deletions

View File

@ -164,6 +164,14 @@ l2cap_channel_t * l2cap_get_channel_for_local_cid(uint16_t local_cid){
return NULL;
}
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;
}
int l2cap_send_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...){
// printf("l2cap_send_signaling_packet type %u\n", cmd);
va_list argptr;

View File

@ -114,6 +114,7 @@ void l2cap_disconnect_internal(uint16_t local_cid, uint8_t reason);
void l2cap_send_internal(uint16_t local_cid, uint8_t *data, uint16_t len);
void l2cap_acl_handler( uint8_t *packet, uint16_t size );
void l2cap_event_handler( uint8_t *packet, uint16_t size );
uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid);
void l2cap_set_capture_connection(connection_t * connection);