Skip to content

Commit

Permalink
bluetooth: mesh: Fix proxy client compilation
Browse files Browse the repository at this point in the history
When building proxy client without proxy server, it fails to find
the `identity` field in the `struct bt_mesh_subnet_keys` because the
latter only compiles when Proxy server is enabled. It should be
possible to compile Proxy Client without Proxy server.

This commit compiles the field if any of GATT features is enabled.

Fixes #75914

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
  • Loading branch information
PavelVPV authored and nashif committed Aug 30, 2024
1 parent 5c17f51 commit 1fa2788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/mesh/subnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct bt_mesh_subnet {
struct bt_mesh_key net; /* NetKey */
struct bt_mesh_net_cred msg;
uint8_t net_id[8]; /* Network ID */
#if defined(CONFIG_BT_MESH_GATT_PROXY)
#if defined(CONFIG_BT_MESH_GATT)
struct bt_mesh_key identity; /* IdentityKey */
#endif
struct bt_mesh_key beacon; /* BeaconKey */
Expand Down

0 comments on commit 1fa2788

Please sign in to comment.