Bluetooth: Mesh: Fix missing feature bits
The feature bits for Proxy and Friend were missing in the composition data and heart beat messages. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
199d07e655
commit
092ec23024
1 changed files with 12 additions and 0 deletions
|
@ -83,6 +83,10 @@ static void hb_send(struct bt_mesh_model *model)
|
|||
feat |= BT_MESH_FEAT_RELAY;
|
||||
}
|
||||
|
||||
if (bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED) {
|
||||
feat |= BT_MESH_FEAT_PROXY;
|
||||
}
|
||||
|
||||
if (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED) {
|
||||
feat |= BT_MESH_FEAT_FRIEND;
|
||||
}
|
||||
|
@ -143,6 +147,14 @@ static int comp_get_page_0(struct net_buf_simple *buf)
|
|||
feat |= BT_MESH_FEAT_RELAY;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY)) {
|
||||
feat |= BT_MESH_FEAT_PROXY;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_FRIEND)) {
|
||||
feat |= BT_MESH_FEAT_FRIEND;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)) {
|
||||
feat |= BT_MESH_FEAT_LOW_POWER;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue