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.
Value shall not be greater than the peer device's MTU for the channel
  • Loading branch information
piotrnarajowski committed Sep 18, 2024
1 parent 67f7e97 commit ac92bda
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 ac92bda

Please sign in to comment.