]> granicus.if.org Git - esp-idf/commitdiff
compoennt/bt: change the remaining_length compare with the max_packet_size value...
authorYulong <huangyulong@espressif.com>
Fri, 26 May 2017 03:09:50 +0000 (23:09 -0400)
committerYulong <huangyulong@espressif.com>
Fri, 26 May 2017 03:09:50 +0000 (23:09 -0400)
components/bt/bluedroid/hci/packet_fragmenter.c

index c1d7dd791535dadff3769ca7bb8e9d910d76b094..d597809a7b1fcefb68d591a274c6e9e860548aa7 100644 (file)
@@ -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;