X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=components%2Fbt%2Fbluedroid%2Fstack%2Frfcomm%2Fport_utils.c;h=0da8b3d76b7318dd176b025d9f0e206db18ca7d1;hb=4f227a4ce39265a39ab9c900763ada3fac7338ab;hp=19e208839b0de8f98a5e0516eb0658f311b813a8;hpb=ffd4187883d69c5c39f2a1961fda06b51ed998fd;p=esp-idf diff --git a/components/bt/bluedroid/stack/rfcomm/port_utils.c b/components/bt/bluedroid/stack/rfcomm/port_utils.c index 19e208839b..0da8b3d76b 100644 --- a/components/bt/bluedroid/stack/rfcomm/port_utils.c +++ b/components/bt/bluedroid/stack/rfcomm/port_utils.c @@ -23,16 +23,16 @@ ******************************************************************************/ #include -#include "bt_target.h" -#include "rfcdefs.h" -#include "port_api.h" +#include "common/bt_target.h" +#include "stack/rfcdefs.h" +#include "stack/port_api.h" #include "port_int.h" #include "rfc_int.h" -#include "l2cdefs.h" +#include "stack/l2cdefs.h" #include "btm_int.h" -#include "btu.h" -#include "mutex.h" -#include "allocator.h" +#include "stack/btu.h" +#include "osi/mutex.h" +#include "osi/allocator.h" #if (defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE) static const tPORT_STATE default_port_pars = { @@ -128,8 +128,8 @@ void port_set_defaults (tPORT *p_port) memset (&p_port->rx, 0, sizeof (p_port->rx)); memset (&p_port->tx, 0, sizeof (p_port->tx)); - p_port->tx.queue = fixed_queue_new(SIZE_MAX); - p_port->rx.queue = fixed_queue_new(SIZE_MAX); + p_port->tx.queue = fixed_queue_new(QUEUE_SIZE_MAX); + p_port->rx.queue = fixed_queue_new(QUEUE_SIZE_MAX); } /******************************************************************************* @@ -265,6 +265,7 @@ void port_release_port (tPORT *p_port) memcpy (p_port->bd_addr, BT_BD_ANY, BD_ADDR_LEN); } else { RFCOMM_TRACE_DEBUG ("port_release_port:Clean-up handle:%d", p_port->inx); + rfc_port_timer_free (p_port); memset (p_port, 0, sizeof (tPORT)); } } @@ -568,4 +569,4 @@ void port_flow_control_peer(tPORT *p_port, BOOLEAN enable, UINT16 count) } -#endif ///(defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE) \ No newline at end of file +#endif ///(defined RFCOMM_INCLUDED && RFCOMM_INCLUDED == TRUE)