l2cap.c (de5414a240cf093ed33d624e9cc700c33dcc1a05) l2cap.c (9afaa4d426555cd46725e0caea74f010a121ef1c)
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

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

1384 l2cap_handle_channel_open_failed(channel, L2CAP_CONNECTION_RESPONSE_RESULT_RTX_TIMEOUT);
1385
1386 // discard channel
1387 btstack_linked_list_remove(&l2cap_channels, (btstack_linked_item_t *) channel);
1388 l2cap_free_channel_entry(channel);
1389}
1390
1391static uint8_t l2cap_classic_packet_boundary_flag(void){
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

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

1384 l2cap_handle_channel_open_failed(channel, L2CAP_CONNECTION_RESPONSE_RESULT_RTX_TIMEOUT);
1385
1386 // discard channel
1387 btstack_linked_list_remove(&l2cap_channels, (btstack_linked_item_t *) channel);
1388 l2cap_free_channel_entry(channel);
1389}
1390
1391static uint8_t l2cap_classic_packet_boundary_flag(void){
1392 return hci_non_flushable_packet_boundary_flag_supported() ? 0x00 : 0x02;
1392 return (hci_non_flushable_packet_boundary_flag_supported() && (hci_automatic_flush_timeout() == 0)) ? 0x00 : 0x02;
1393}
1394#endif
1395
1396#ifdef L2CAP_USES_CHANNELS
1397static void l2cap_stop_rtx(l2cap_channel_t * channel){
1398 log_info("l2cap_stop_rtx for local cid 0x%02x", channel->local_cid);
1399 btstack_run_loop_remove_timer(&channel->rtx);
1400}

--- 4154 unchanged lines hidden ---
1393}
1394#endif
1395
1396#ifdef L2CAP_USES_CHANNELS
1397static void l2cap_stop_rtx(l2cap_channel_t * channel){
1398 log_info("l2cap_stop_rtx for local cid 0x%02x", channel->local_cid);
1399 btstack_run_loop_remove_timer(&channel->rtx);
1400}

--- 4154 unchanged lines hidden ---