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:
parent
d588850c0c
commit
46e0afdf82
1 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue