l2cap.c (e789584cfee91399d63d9d3a8d287a5ef4549cfc) l2cap.c (42c7a7b810426e33d7d4fb732ced86e94f3a7d05)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1350 unchanged lines hidden (view full) ---

1359#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
1360 if (channel->mode == L2CAP_CHANNEL_MODE_ENHANCED_RETRANSMISSION){
1361 return false;
1362 }
1363#endif
1364 return hci_can_send_prepared_acl_packet_now(channel->con_handle);
1365}
1366
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1350 unchanged lines hidden (view full) ---

1359#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
1360 if (channel->mode == L2CAP_CHANNEL_MODE_ENHANCED_RETRANSMISSION){
1361 return false;
1362 }
1363#endif
1364 return hci_can_send_prepared_acl_packet_now(channel->con_handle);
1365}
1366
1367#endif
1368
1369#ifdef L2CAP_USES_CHANNELS
1367uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid){
1368 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid);
1369 if (channel) {
1370 return channel->remote_mtu;
1370uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid){
1371 l2cap_channel_t * channel = l2cap_get_channel_for_local_cid(local_cid);
1372 if (channel) {
1373 return channel->remote_mtu;
1371 }
1374 }
1372 return 0;
1373}
1374#endif
1375
1376#ifdef ENABLE_CLASSIC
1377// RTX Timer only exist for dynamic channels
1378static l2cap_channel_t * l2cap_channel_for_rtx_timer(btstack_timer_source_t * ts){
1379 btstack_linked_list_iterator_t it;

--- 4367 unchanged lines hidden ---
1375 return 0;
1376}
1377#endif
1378
1379#ifdef ENABLE_CLASSIC
1380// RTX Timer only exist for dynamic channels
1381static l2cap_channel_t * l2cap_channel_for_rtx_timer(btstack_timer_source_t * ts){
1382 btstack_linked_list_iterator_t it;

--- 4367 unchanged lines hidden ---