ble_mesh: stack: Fix compile error when only proxy enabled
Also remove some redundant CONFIG_BLE_MESH_PROXY checks, because when the following options are satisfied, the CONFIG_BLE_MESH_PROXY option will be selected mandatorily.
This commit is contained in:
parent
45fff86e05
commit
c8112454c3
1 changed files with 14 additions and 15 deletions
|
@ -336,17 +336,16 @@ int bt_mesh_init(const struct bt_mesh_prov *prov,
|
||||||
bt_mesh_gatt_init();
|
bt_mesh_gatt_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BLE_MESH_PROXY)) {
|
if ((IS_ENABLED(CONFIG_BLE_MESH_NODE) &&
|
||||||
if ((IS_ENABLED(CONFIG_BLE_MESH_NODE) &&
|
IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) ||
|
||||||
IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) ||
|
IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER)) {
|
||||||
IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER)) {
|
bt_mesh_proxy_init();
|
||||||
bt_mesh_proxy_init();
|
}
|
||||||
}
|
|
||||||
if ((IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
if ((IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
||||||
IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) ||
|
IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) ||
|
||||||
IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_CLIENT)) {
|
IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_CLIENT)) {
|
||||||
bt_mesh_proxy_prov_client_init();
|
bt_mesh_proxy_prov_client_init();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BLE_MESH_PROV)) {
|
if (IS_ENABLED(CONFIG_BLE_MESH_PROV)) {
|
||||||
|
@ -444,10 +443,10 @@ int bt_mesh_deinit(struct bt_mesh_deinit_param *param)
|
||||||
|
|
||||||
bt_mesh_beacon_deinit();
|
bt_mesh_beacon_deinit();
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BLE_MESH_PROXY)) {
|
if ((IS_ENABLED(CONFIG_BLE_MESH_NODE) &&
|
||||||
if (IS_ENABLED(CONFIG_BLE_MESH_NODE)) {
|
IS_ENABLED(CONFIG_BLE_MESH_PB_GATT)) ||
|
||||||
bt_mesh_proxy_deinit();
|
IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER)) {
|
||||||
}
|
bt_mesh_proxy_deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
if ((IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) &&
|
||||||
|
|
Loading…
Reference in a new issue