Skip to content

Commit

Permalink
nimble/host: Truncate data in ble_eatt_tx
Browse files Browse the repository at this point in the history
Data packets sent over eatt chan weren't correctly truncated.
Data packet is now adjusted to peer device's MTU for the channel.
Fixes various GATT/SR test cases that verify support for Read Long
Characteristic Value Requests, Multiple Read Characteristic Value
Requests etc.
  • Loading branch information
piotrnarajowski authored and KKopyscinski committed Sep 23, 2024
1 parent caecb2c commit a633169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nimble/host/src/ble_eatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ ble_eatt_tx(uint16_t conn_handle, uint16_t cid, struct os_mbuf *txom)
goto error;
}

ble_att_truncate_to_mtu(eatt->chan, txom);

rc = ble_l2cap_send(eatt->chan, txom);
if (rc == 0) {
goto done;
Expand Down

0 comments on commit a633169

Please sign in to comment.