l2cap.c (b5bab9c8041d8595ee3f709964b18c1366d83fa0) | l2cap.c (8f4dd6c139388844e52e2802e9061184f613fa9f) |
---|---|
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 --- 1853 unchanged lines hidden (view full) --- 1862 1863 log_info("create channel %p, local_cid 0x%04x", channel, channel->local_cid); 1864 1865 return channel; 1866} 1867 1868static void l2cap_free_channel_entry(l2cap_channel_t * channel){ 1869 log_info("free channel %p, local_cid 0x%04x", channel, channel->local_cid); | 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 --- 1853 unchanged lines hidden (view full) --- 1862 1863 log_info("create channel %p, local_cid 0x%04x", channel, channel->local_cid); 1864 1865 return channel; 1866} 1867 1868static void l2cap_free_channel_entry(l2cap_channel_t * channel){ 1869 log_info("free channel %p, local_cid 0x%04x", channel, channel->local_cid); |
1870 // assert rts/ertx timers are stopped | 1870 // assert all timers are stopped |
1871 l2cap_stop_rtx(channel); | 1871 l2cap_stop_rtx(channel); |
1872#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE 1873 l2cap_ertm_stop_retransmission_timer(channel); 1874 l2cap_ertm_stop_monitor_timer(channel); 1875#endif |
|
1872 // free memory 1873 btstack_memory_l2cap_channel_free(channel); 1874} 1875#endif 1876 1877#ifdef ENABLE_CLASSIC 1878 1879/** --- 2006 unchanged lines hidden --- | 1876 // free memory 1877 btstack_memory_l2cap_channel_free(channel); 1878} 1879#endif 1880 1881#ifdef ENABLE_CLASSIC 1882 1883/** --- 2006 unchanged lines hidden --- |