system/bt
Revisión | 294e64950ccb82e7cbfec60ef0e3319f8c4a5dcd (tree) |
---|---|
Tiempo | 2019-12-03 09:58:27 |
Autor | Automerger Merge Worker <android-build-automerger-merge-worker@syst...> |
Commiter | Automerger Merge Worker |
Merge "GAP: Correct the continuous pkt length in l2cap" into oc-dev am: 2a8a9b22f2 am: 5d8fde3e01 am: 5dbe08152a
Change-Id: I9b78c5b36d9d1382f307fabacc20bb74d2e91322
@@ -216,7 +216,8 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) { | ||
216 | 216 | "%s got packet which would exceed expected length of %d. " |
217 | 217 | "Truncating.", |
218 | 218 | __func__, partial_packet->len); |
219 | - packet->len = partial_packet->len - partial_packet->offset; | |
219 | + packet->len = | |
220 | + (partial_packet->len - partial_packet->offset) + packet->offset; | |
220 | 221 | projected_offset = partial_packet->len; |
221 | 222 | } |
222 | 223 |