diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-06 23:10:08 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-06 23:10:08 +0000 |
commit | 6cab953d1b6df0a93630d3c8aa1c351932a6df44 (patch) | |
tree | 09313c256b3a38c8aa253e6322d6ec463a4df364 | |
parent | a150bf1019974cbaa9bae531a1eb5bc7e1d252ec (diff) | |
parent | 7606c6e2d4e23e122e7a77d238b388f447c16a39 (diff) | |
download | bt-android12-qpr3-s1-release.tar.gz |
Snap for 8412755 from 7606c6e2d4e23e122e7a77d238b388f447c16a39 to sc-qpr3-releaseandroid-12.1.0_r8android-12.1.0_r7android12-qpr3-s2-releaseandroid12-qpr3-s1-release
Change-Id: I857078dbb2d25b005e8f5c2ca9a3a0f828017806
-rw-r--r-- | stack/gatt/gatt_sr.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stack/gatt/gatt_sr.cc b/stack/gatt/gatt_sr.cc index 9fe642cba..0396bb16f 100644 --- a/stack/gatt/gatt_sr.cc +++ b/stack/gatt/gatt_sr.cc @@ -173,6 +173,9 @@ static void build_read_multi_rsp(tGATT_SR_CMD* p_cmd, uint16_t mtu) { if (p_rsp != NULL) { total_len = (p_buf->len + p_rsp->attr_value.len); + if (p_cmd->multi_req.variable_len) { + total_len += 2; + } if (total_len > mtu) { /* just send the partial response for the overflow case */ |