diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index f11d66424d2..1a77429abb1 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -558,7 +558,7 @@ endif # BT_HCI_HOST config BT_ECC bool "Enable ECDH key generation support" - default y if !BT_SMP_OOB_LEGACY_PAIR_ONLY + default y if BT_MESH_PROV || (BT_SMP && !BT_SMP_OOB_LEGACY_PAIR_ONLY) help This option adds support for ECDH HCI commands. diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index e0e46d0392f..e505df51f5f 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -20,7 +20,6 @@ if BT_MESH # Virtual option enabled whenever Generic Provisioning layer is needed config BT_MESH_PROV bool - select BT_ECC config BT_MESH_PB_ADV bool "Provisioning support using the advertising bearer (PB-ADV)" @@ -32,7 +31,6 @@ config BT_MESH_PB_ADV config BT_MESH_PROVISIONER bool "Provisioner support" - select BT_ECC select BT_MESH_PROV help Enable this option to have support for provisioning remote devices.