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:
Mariusz Skamra 2018-01-04 09:45:09 +01:00 committed by Johan Hedberg
commit cc1a960730

View file

@ -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)