Skip to content

Commit d3997c6

Browse files
PavelVPVkartben
authored andcommitted
bluetooth: mesh: set subscription address on response
This fixes an issue where a subsequent Config Model Subscription Add message with the same virtual address UUID would result in a Config Model Subscription Status message with the Address field incorrectly set to 0. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
1 parent b2310b6 commit d3997c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/mesh/cfg_srv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,7 @@ static int mod_sub_va_add(const struct bt_mesh_model *model,
14291429
/* Tried to add existing subscription */
14301430
status = STATUS_SUCCESS;
14311431
(void)bt_mesh_va_del(va->uuid);
1432+
sub_addr = va->addr;
14321433
goto send_status;
14331434
}
14341435

0 commit comments

Comments
 (0)