Skip to content

Commit 4b98d72

Browse files
Johan HedbergAnas Nashif
authored andcommitted
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 <[email protected]>
1 parent 46ffe45 commit 4b98d72

File tree

1 file changed

+12
-0
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+12
-0
lines changed

subsys/bluetooth/host/mesh/cfg.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ static void hb_send(struct bt_mesh_model *model)
8383
feat |= BT_MESH_FEAT_RELAY;
8484
}
8585

86+
if (bt_mesh_gatt_proxy_get() == BT_MESH_GATT_PROXY_ENABLED) {
87+
feat |= BT_MESH_FEAT_PROXY;
88+
}
89+
8690
if (bt_mesh_friend_get() == BT_MESH_FRIEND_ENABLED) {
8791
feat |= BT_MESH_FEAT_FRIEND;
8892
}
@@ -143,6 +147,14 @@ static int comp_get_page_0(struct net_buf_simple *buf)
143147
feat |= BT_MESH_FEAT_RELAY;
144148
}
145149

150+
if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY)) {
151+
feat |= BT_MESH_FEAT_PROXY;
152+
}
153+
154+
if (IS_ENABLED(CONFIG_BT_MESH_FRIEND)) {
155+
feat |= BT_MESH_FEAT_FRIEND;
156+
}
157+
146158
if (IS_ENABLED(CONFIG_BT_MESH_LOW_POWER)) {
147159
feat |= BT_MESH_FEAT_LOW_POWER;
148160
}

0 commit comments

Comments
 (0)