Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Bluetooth: add missing param to testlib #66146

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/bluetooth/common/testlib/include/testlib/att_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ int bt_testlib_att_read_by_handle_sync(struct net_buf_simple *result_data, uint1
uint16_t offset);

int bt_testlib_gatt_long_read(struct net_buf_simple *result_data, uint16_t *result_size,
struct bt_conn *conn, enum bt_att_chan_opt bearer, uint16_t handle,
uint16_t offset);
uint16_t *result_att_mtu, struct bt_conn *conn,
enum bt_att_chan_opt bearer, uint16_t handle, uint16_t offset);

int bt_testlib_gatt_discover_primary(uint16_t *result_handle, uint16_t *result_end_handle,
struct bt_conn *conn, const struct bt_uuid *uuid,
Expand Down
4 changes: 2 additions & 2 deletions tests/bluetooth/common/testlib/src/att_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ int bt_testlib_att_read_by_handle_sync(struct net_buf_simple *result_data, uint1
}

int bt_testlib_gatt_long_read(struct net_buf_simple *result_data, uint16_t *result_size,
struct bt_conn *conn, enum bt_att_chan_opt bearer, uint16_t handle,
uint16_t offset)
uint16_t *result_att_mtu, struct bt_conn *conn,
enum bt_att_chan_opt bearer, uint16_t handle, uint16_t offset)
{
int err;
uint16_t _result_data_size = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/bsim/bluetooth/host/att/long_read/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static void test_long_read(enum bt_att_chan_opt bearer, uint16_t chrc_value_hand
NET_BUF_SIMPLE_DEFINE(attr_value_buf, BT_ATT_MAX_ATTRIBUTE_LEN);

/* Perform the whole long read operation. */
EXPECT_ZERO(bt_testlib_gatt_long_read(&attr_value_buf, NULL, conn, bearer,
EXPECT_ZERO(bt_testlib_gatt_long_read(&attr_value_buf, NULL, NULL, conn, bearer,
chrc_value_handle, 0));

/* Parse the read attribute value to verify the
Expand Down
Loading