Bluetooth: Mesh: Fixes wrong subnet used for Friend Clear
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 <maximus.liu@gmail.com>
This commit is contained in:
parent
3a4d547c5a
commit
2f691d2597
1 changed files with 1 additions and 1 deletions
|
@ -749,7 +749,7 @@ static void send_friend_clear(struct bt_mesh_friend *frnd)
|
|||
.send_ttl = BT_MESH_TTL_MAX,
|
||||
};
|
||||
struct bt_mesh_net_tx tx = {
|
||||
.sub = &bt_mesh.sub[0],
|
||||
.sub = bt_mesh_subnet_get(frnd->net_idx),
|
||||
.ctx = &ctx,
|
||||
.src = bt_mesh_primary_addr(),
|
||||
.xmit = bt_mesh_net_transmit_get(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue