system/bt
リビジョン | 2a8a9b22f2018a7da89e5f9bc5bacf2e5e8541fa (tree) |
---|---|
日時 | 2019-12-03 09:33:29 |
作者 | TreeHugger Robot <treehugger-gerrit@goog...> |
コミッター | Android (Google) Code Review |
Merge "GAP: Correct the continuous pkt length in l2cap" into oc-dev
@@ -214,7 +214,8 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) { | ||
214 | 214 | "%s got packet which would exceed expected length of %d. " |
215 | 215 | "Truncating.", |
216 | 216 | __func__, partial_packet->len); |
217 | - packet->len = partial_packet->len - partial_packet->offset; | |
217 | + packet->len = | |
218 | + (partial_packet->len - partial_packet->offset) + packet->offset; | |
218 | 219 | projected_offset = partial_packet->len; |
219 | 220 | } |
220 | 221 |