compoennt/bt: change the remaining_length compare with the max_packet_size value when the data packet should fragment and dispatch.
This commit is contained in:
parent
81ff34742b
commit
e40810adbb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ static void fragment_and_dispatch(BT_HDR *packet)
|
||||||
remaining_length = packet->len;
|
remaining_length = packet->len;
|
||||||
STREAM_TO_UINT16(continuation_handle, stream);
|
STREAM_TO_UINT16(continuation_handle, stream);
|
||||||
continuation_handle = APPLY_CONTINUATION_FLAG(continuation_handle);
|
continuation_handle = APPLY_CONTINUATION_FLAG(continuation_handle);
|
||||||
if (remaining_length > max_data_size) {
|
if (remaining_length > max_packet_size) {
|
||||||
current_fragment_packet = packet;
|
current_fragment_packet = packet;
|
||||||
UINT16_TO_STREAM(stream, max_data_size);
|
UINT16_TO_STREAM(stream, max_data_size);
|
||||||
packet->len = max_packet_size;
|
packet->len = max_packet_size;
|
||||||
|
|
Loading…
Reference in a new issue