Bluetooth: mesh: Fix status returned from mod_unbind
According to Mesh Specification v1.0 4.3.2.48 Config Model App Status: "The Status Code shall be Success if the received request was redundant (bind request of existing binding, or unbind of a non-existing binding), with no further action taken." Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
9d6bb0995c
commit
cc1a960730
1 changed files with 1 additions and 3 deletions
|
@ -348,11 +348,9 @@ static u8_t mod_unbind(struct bt_mesh_model *model, u16_t key_idx)
|
|||
_mod_pub_set(model, BT_MESH_ADDR_UNASSIGNED,
|
||||
0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
return STATUS_CANNOT_BIND;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static struct bt_mesh_app_key *app_key_alloc(u16_t app_idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue