Bluetooth: mesh: Fix LPN subsciption groups update on VA deletion
This fixes missing bt_mesh_lpn_group_del call in mod_sub_va_del. If Config Model Subscription Virtual Address Delete was received and successfully proceeded, subscription address shall be also deleted from LPN Subscribe Groups. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
3e4e3bd96f
commit
4ba9543bdd
1 changed files with 4 additions and 0 deletions
|
@ -1714,6 +1714,10 @@ static void mod_sub_va_del(struct bt_mesh_model *model,
|
|||
goto send_status;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)) {
|
||||
bt_mesh_lpn_group_del(&sub_addr, 1);
|
||||
}
|
||||
|
||||
match = bt_mesh_model_find_group(mod, sub_addr);
|
||||
if (match) {
|
||||
*match = BT_MESH_ADDR_UNASSIGNED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue