-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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: tester: Add commands to add and delete virtual addresses #59486
tests: bluetooth: tester: Add commands to add and delete virtual addresses #59486
Conversation
Virtual address behavior has been changed in this PR: zephyrproject-rtos/zephyr#57878 Now it requires label uuid to be added before any message can be sent and desired uuid should be passed to message context structure before sending a message to a virtual address. This change should fix MESH/NODE/NET/BV-02-C and MESH/NODE/TNPT/BV-05-C failing tests. For MESH/NODE/NET/BV-02-C the virtual address is added on hdl_wid_21 as PTS asks the stack to provide known virtual address. For MESH/NODE/TNPT/BV-05-C PTS gives the label uuid in the message, therefore we need to add this address first before sending a message to it. Corresponding PR to zephyrproject-rtos: zephyrproject-rtos/zephyr#59486 Signed-off-by: Pavel Vasilyev <[email protected]>
Virtual address behavior has been changed in this PR: zephyrproject-rtos/zephyr#57878 Now it requires label uuid to be added before any message can be sent and desired uuid should be passed to message context structure before sending a message to a virtual address. This change should fix MESH/NODE/NET/BV-02-C and MESH/NODE/TNPT/BV-05-C failing tests. For MESH/NODE/NET/BV-02-C the virtual address is added on hdl_wid_21 as PTS asks the stack to provide known virtual address. For MESH/NODE/TNPT/BV-05-C PTS gives the label uuid in the message, therefore we need to add this address first before sending a message to it. Corresponding PR to zephyrproject-rtos: zephyrproject-rtos/zephyr#59486 Signed-off-by: Pavel Vasilyev <[email protected]>
Virtual address behavior has been changed in this PR: zephyrproject-rtos/zephyr#57878 Now it requires label uuid to be added before any message can be sent and desired uuid should be passed to message context structure before sending a message to a virtual address. This change should fix MESH/NODE/NET/BV-02-C and MESH/NODE/TNPT/BV-05-C failing tests. For MESH/NODE/NET/BV-02-C the virtual address is added on hdl_wid_21 as PTS asks the stack to provide known virtual address. For MESH/NODE/TNPT/BV-05-C PTS gives the label uuid in the message, therefore we need to add this address first before sending a message to it. Corresponding PR to zephyrproject-rtos: zephyrproject-rtos/zephyr#59486 Signed-off-by: Pavel Vasilyev <[email protected]>
Virtual address behavior has been changed in this PR: zephyrproject-rtos/zephyr#57878 Now it requires label uuid to be added before any message can be sent and desired uuid should be passed to message context structure before sending a message to a virtual address. This change should fix MESH/NODE/NET/BV-02-C and MESH/NODE/TNPT/BV-05-C failing tests. For MESH/NODE/NET/BV-02-C the virtual address is added on hdl_wid_21 as PTS asks the stack to provide known virtual address. For MESH/NODE/TNPT/BV-05-C PTS gives the label uuid in the message, therefore we need to add this address first before sending a message to it. Corresponding PR to zephyrproject-rtos: zephyrproject-rtos/zephyr#59486 Signed-off-by: Pavel Vasilyev <[email protected]>
pls rebase |
835ad24
to
7c863e1
Compare
7c863e1
to
a7d3eab
Compare
@sjanc, @alwa-nordic, @jhedberg, could you approve PR so it gets merged? Corresponding PR for auto-pts has been merged. This should fix failing PTS tests for mesh. |
const struct bt_mesh_va *va; | ||
int err; | ||
|
||
if (cmd_len != sizeof(*cp)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed when expected_len is provided
return BTP_STATUS_FAILED; | ||
} | ||
|
||
rp->addr = va->addr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if va->addr is host or le16, if host this should be converted
const struct bt_mesh_va *va; | ||
int err; | ||
|
||
if (cmd_len != sizeof(*cp)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: not needed if expected_len is provided
0ce867f
a7d3eab
to
0ce867f
Compare
return BTP_STATUS_FAILED; | ||
} | ||
|
||
rp->addr = sys_le16_to_cpu(va->addr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be sys_cpu_to_le16 ? (BTP is LE)
Virtual address behavior has been changed in this PR: zephyrproject-rtos#57878 Now it is required to register virtual address before using it. Corresponding PR to auto-pts: auto-pts/auto-pts#961 Signed-off-by: Pavel Vasilyev <[email protected]>
0ce867f
to
5ca46bc
Compare
@sjanc , please review |
@sjanc , can you please look at this PR? |
Virtual address behavior has been changed in this PR: zephyrproject-rtos/zephyr#57878 Now it requires label uuid to be added before any message can be sent and desired uuid should be passed to message context structure before sending a message to a virtual address. This change should fix MESH/NODE/NET/BV-02-C and MESH/NODE/TNPT/BV-05-C failing tests. For MESH/NODE/NET/BV-02-C the virtual address is added on hdl_wid_21 as PTS asks the stack to provide known virtual address. For MESH/NODE/TNPT/BV-05-C PTS gives the label uuid in the message, therefore we need to add this address first before sending a message to it. Corresponding PR to zephyrproject-rtos: zephyrproject-rtos/zephyr#59486 Signed-off-by: Pavel Vasilyev <[email protected]>
Virtual address behavior has been changed in this PR: #57878
Now it is required to register virtual address before using it.
Corresponding PR to auto-pts:
auto-pts/auto-pts#961