Skip to content

Commit 2410ec1

Browse files
m-alperen-senercvinayak
authored andcommitted
[nrf fromlist] tests: bluetooth: tester: add page number to response
PTS requires IUT to send requests with page number with 0xFF or the highest supported page number in order to retrieve all the composition data pages from the lower tester. This commit add the page number to the response, thus the upper tester can follow the last page number and send the next page request until page 0 is requested. Upstream PR: zephyrproject-rtos/zephyr#63872 Signed-off-by: Alperen Şener <[email protected]>
1 parent cf03a36 commit 2410ec1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bluetooth/tester/src/btp_mesh.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,8 +2033,9 @@ static uint8_t composition_data_get(const void *cmd, uint16_t cmd_len,
20332033
return BTP_STATUS_FAILED;
20342034
}
20352035

2036-
memcpy(rp->data, comp->data, comp->len);
2037-
*rsp_len = comp->len;
2036+
rp->data[0] = page;
2037+
memcpy(rp->data + 1, comp->data, comp->len);
2038+
*rsp_len = comp->len + 1;
20382039

20392040
return BTP_STATUS_SUCCESS;
20402041
}

0 commit comments

Comments
 (0)