From 1fa27888f43080a1e53ba6ee3f071ac8daca8b9c Mon Sep 17 00:00:00 2001 From: Pavel Vasilyev Date: Wed, 28 Aug 2024 09:15:31 +0200 Subject: [PATCH] bluetooth: mesh: Fix proxy client compilation 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 --- subsys/bluetooth/mesh/subnet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/mesh/subnet.h b/subsys/bluetooth/mesh/subnet.h index b5a71093f81..23a9a417c54 100644 --- a/subsys/bluetooth/mesh/subnet.h +++ b/subsys/bluetooth/mesh/subnet.h @@ -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 */