Skip to content

Commit 83bc101

Browse files
PavelVPVcvinayak
authored andcommitted
[nrf fromlist] tests: bluetooth: tester: Fix BLOB server model pointer
PTS uses BLOB server model instantiated by DFD server for MBT tests as it is the first BLOB server model in the device composition data. DFU server, which also has BLOB server model, is instantiated after DFD server. Upstream PR: zephyrproject-rtos/zephyr#63904 Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent ed0fc63 commit 83bc101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/bluetooth/tester/src/btp_mesh.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4468,10 +4468,10 @@ static uint8_t blob_srv_recv(const void *cmd, uint16_t cmd_len,
44684468
struct model_data *model_bound;
44694469
int err;
44704470

4471-
#if defined(CONFIG_BT_MESH_DFU_SRV)
4472-
struct bt_mesh_blob_srv *srv = &dfu_srv.blob;
4473-
#elif defined(CONFIG_BT_MESH_DFD_SRV)
4471+
#if defined(CONFIG_BT_MESH_DFD_SRV)
44744472
struct bt_mesh_blob_srv *srv = &dfd_srv.upload.blob;
4473+
#elif defined(CONFIG_BT_MESH_DFU_SRV)
4474+
struct bt_mesh_blob_srv *srv = &dfu_srv.blob;
44754475
#endif
44764476

44774477
model_bound = lookup_model_bound(BT_MESH_MODEL_ID_BLOB_SRV);

0 commit comments

Comments
 (0)