Bluetooth: Mesh: Fix add model group address to sub list
When low power node reset, should add group address to friend subscription list. Fixes: #24311 Signed-off-by: Lingao Meng <mengabc1086@gmail.com>
This commit is contained in:
parent
2e4eab5ebc
commit
49e4f754b4
2 changed files with 14 additions and 0 deletions
|
@ -1262,6 +1262,9 @@ static size_t mod_sub_list_clear(struct bt_mesh_model *mod)
|
|||
/* Unref stored labels related to this model */
|
||||
for (i = 0, clear_count = 0; i < ARRAY_SIZE(mod->groups); i++) {
|
||||
if (mod->groups[i] != BT_MESH_ADDR_UNASSIGNED) {
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)) {
|
||||
bt_mesh_lpn_group_del(&mod->groups[i], 1);
|
||||
}
|
||||
mod->groups[i] = BT_MESH_ADDR_UNASSIGNED;
|
||||
clear_count++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue