-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Bluetooth: Mesh: Friend Clear message from a Friend node #21165
Comments
CC @jhedberg |
Thanks for the report @Campou. I think the above code is not quite right - it should probably be |
Hi @jhedberg Thanks for the reply. And one more question here: When LPN tries to send Friend Request to all-friend nodes, it will use the NetKey from BR |
@Campou currently, to keep the code simple, the LPN implementation only supports establishing Friendship on the primary subnet. If you have a requirement to support Friendship on multiple subnets you are welcome to submit a PR. I'm not sure it makes sense for an LPN to establish Friendship on only part of its subnets, since it would be unable to operate using low power otherwise. Even having Friendship on multiple subnets will consume substantially more power (more timers, PDUs to send, etc), which is why I made the assumption most LPNs will be happy being on a single subnet. Btw, are you planning to submit a PR for the first issue you reported with the Friend Clear? |
Hi @jhedberg Thanks, I will submit a PR for the first issue. |
When Friend node tries to send Friend Clear message to other Friend nodes, it should use the subnet information based on the net_idx from friendship. Fixes zephyrproject-rtos#21165 Signed-off-by: Maximus Liu <[email protected]>
When Friend node tries to send Friend Clear message to other Friend nodes, it should use the subnet information based on the net_idx from friendship. Fixes #21165 Signed-off-by: Maximus Liu <[email protected]>
In Zephyr's implementation, when a Friend node tries to send the Friend Clear message to another Friend node, it will use the master security material from
bt_mesh.sub[0]
, and the code is:Here, is there any chance that the other Friend node is not on the same subnet?
Thanks.
The text was updated successfully, but these errors were encountered: