Skip to content

Commit

Permalink
tests: bluetooth: tester: Fix ATT max attr size assert
Browse files Browse the repository at this point in the history
ATT attributes can be up to 512 bytes long, so the comparisong needed
fixing.

See spec v5.4, Vol 3, Part F, 3.2.9.

Fixes #57930.

Signed-off-by: Carles Cufi <[email protected]>
  • Loading branch information
carlescufi authored and nashif committed Jun 8, 2023
1 parent c0c2c6e commit bcd0e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bluetooth/tester/src/btp_gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static ssize_t write_value(struct bt_conn *conn,
value->len = len;

/* Maximum attribute value size is 512 bytes */
__ASSERT_NO_MSG(value->len < 512);
__ASSERT_NO_MSG(value->len <= 512);

attr_value_changed_ev(attr->handle, value->data, value->len);

Expand Down

0 comments on commit bcd0e8c

Please sign in to comment.