Bluetooth: Mesh: Health: Fix requiring specific Company ID

The Health Fault Test & Test Unacknowledged messages are supposed to
be sent for more than the Node Composition Data Company ID. It's true
that some PTS tests require the message to be ignored for
non-composition data ID, however that's something that should be
covered by the application that's used for testing, and not the
generic Health Server Code.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-11-22 19:26:18 +02:00 committed by Johan Hedberg
commit 46e0afdf82

View file

@ -168,7 +168,6 @@ static void health_fault_test_unrel(struct bt_mesh_model *model,
struct net_buf_simple *buf)
{
struct bt_mesh_health_srv *srv = model->user_data;
const struct bt_mesh_comp *comp;
u16_t company_id;
u8_t test_id;
@ -177,13 +176,6 @@ static void health_fault_test_unrel(struct bt_mesh_model *model,
BT_DBG("test 0x%02x company 0x%04x", test_id, company_id);
comp = bt_mesh_comp_get();
if (comp->cid != company_id) {
BT_WARN("CID 0x%04x doesn't match composition CID 0x%04x",
company_id, comp->cid);
return;
}
if (srv->cb && srv->cb->fault_test) {
srv->cb->fault_test(model, test_id, company_id);
}