diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index bc63b38e1..c93926cb7 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -1095,7 +1095,7 @@ static void prov_data(const u8_t *data) /* After PB-GATT provisioning we should start advertising * using Node Identity. */ - if (identity_enable) { + if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY) && identity_enable) { bt_mesh_proxy_identity_enable(); }