tests: bluetooth: tester: add transfer ttl to mbt inputs
adding transfer ttl ixit value to be used as input for mbt test cases Signed-off-by: Alperen Şener <alperen.sener@nordicsemi.no>
This commit is contained in:
parent
66730c961e
commit
90fac3045d
|
@ -954,6 +954,7 @@ struct btp_mmdl_dfu_firmware_update_rp {
|
|||
struct btp_mmdl_blob_srv_recv_cmd {
|
||||
uint64_t id;
|
||||
uint16_t timeout;
|
||||
uint8_t ttl;
|
||||
} __packed;
|
||||
|
||||
#define BTP_MMDL_BLOB_TRANSFER_START 0x66
|
||||
|
@ -963,6 +964,7 @@ struct btp_mmdl_blob_transfer_start_cmd {
|
|||
uint8_t block_size;
|
||||
uint16_t chunk_size;
|
||||
uint16_t timeout;
|
||||
uint8_t ttl;
|
||||
} __packed;
|
||||
|
||||
#define BTP_MMDL_BLOB_TRANSFER_CANCEL 0x67
|
||||
|
|
|
@ -4228,6 +4228,10 @@ static uint8_t blob_transfer_start(const void *cmd, uint16_t cmd_len,
|
|||
blob_cli_xfer.inputs.timeout_base = cp->timeout;
|
||||
}
|
||||
|
||||
if (cp->ttl) {
|
||||
blob_cli_xfer.inputs.ttl = cp->ttl;
|
||||
}
|
||||
|
||||
err = bt_mesh_blob_cli_send(&blob_cli, &blob_cli_xfer.inputs,
|
||||
&blob_cli_xfer.xfer, &dummy_blob_io);
|
||||
|
||||
|
@ -4311,13 +4315,15 @@ static uint8_t blob_srv_recv(const void *cmd, uint16_t cmd_len,
|
|||
|
||||
uint16_t timeout_base;
|
||||
uint64_t id;
|
||||
uint8_t ttl;
|
||||
|
||||
LOG_DBG("");
|
||||
|
||||
id = cp->id;
|
||||
timeout_base = cp->timeout;
|
||||
ttl = cp->ttl;
|
||||
|
||||
err = bt_mesh_blob_srv_recv(srv, id, &dummy_blob_io, BT_MESH_TTL_MAX,
|
||||
err = bt_mesh_blob_srv_recv(srv, id, &dummy_blob_io, ttl,
|
||||
timeout_base);
|
||||
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue