From e40810adbb04950952b5d206da70fb91373e42b4 Mon Sep 17 00:00:00 2001 From: Yulong Date: Thu, 25 May 2017 23:09:50 -0400 Subject: [PATCH] compoennt/bt: change the remaining_length compare with the max_packet_size value when the data packet should fragment and dispatch. --- components/bt/bluedroid/hci/packet_fragmenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/hci/packet_fragmenter.c b/components/bt/bluedroid/hci/packet_fragmenter.c index c1d7dd791..d597809a7 100644 --- a/components/bt/bluedroid/hci/packet_fragmenter.c +++ b/components/bt/bluedroid/hci/packet_fragmenter.c @@ -93,7 +93,7 @@ static void fragment_and_dispatch(BT_HDR *packet) remaining_length = packet->len; STREAM_TO_UINT16(continuation_handle, stream); continuation_handle = APPLY_CONTINUATION_FLAG(continuation_handle); - if (remaining_length > max_data_size) { + if (remaining_length > max_packet_size) { current_fragment_packet = packet; UINT16_TO_STREAM(stream, max_data_size); packet->len = max_packet_size;