mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/bt: Fixed the problem of incomplete data packets caused by disordered acl data packets
This commit is contained in:
parent
846a2f95f4
commit
e69ee31e1a
@ -1131,6 +1131,12 @@ void l2c_link_check_send_pkts (tL2C_LCB *p_lcb, tL2C_CCB *p_ccb, BT_HDR *p_buf)
|
|||||||
while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota))
|
while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
//need check flag: partial_segment_being_sent
|
||||||
|
if ( (p_lcb->partial_segment_being_sent)
|
||||||
|
|| (p_lcb->link_state != LST_CONNECTED)
|
||||||
|
|| (L2C_LINK_CHECK_POWER_MODE (p_lcb)) ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
//L2CAP_TRACE_DEBUG("l2cu_get_next_buffer_to_send = %p",l2cu_get_next_buffer_to_send(p_lcb));
|
//L2CAP_TRACE_DEBUG("l2cu_get_next_buffer_to_send = %p",l2cu_get_next_buffer_to_send(p_lcb));
|
||||||
if ((p_buf = l2cu_get_next_buffer_to_send (p_lcb)) == NULL) {
|
if ((p_buf = l2cu_get_next_buffer_to_send (p_lcb)) == NULL) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user