From e7eccf7ed045194a1f6db6ccb3e7dc092f61aefc Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Tue, 10 Jan 2023 14:11:07 +0530 Subject: [PATCH] Nimble: Fix compilation issue for examples for esp32c6 and esp32h4 --- .../nimble/ble_l2cap_coc/coc_blecent/main/Kconfig.projbuild | 1 + .../nimble/ble_l2cap_coc/coc_bleprph/main/Kconfig.projbuild | 1 + .../bluetooth/nimble/ble_periodic_adv/main/Kconfig.projbuild | 1 + .../bluetooth/nimble/ble_periodic_sync/main/Kconfig.projbuild | 1 + .../bluetooth/nimble/ble_phy/phy_cent/main/Kconfig.projbuild | 3 ++- .../bluetooth/nimble/ble_phy/phy_prph/main/Kconfig.projbuild | 3 ++- examples/bluetooth/nimble/blecent/main/Kconfig.projbuild | 1 + examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild | 1 + 8 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/bluetooth/nimble/ble_l2cap_coc/coc_blecent/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_l2cap_coc/coc_blecent/main/Kconfig.projbuild index 932c796848..e142a26c82 100644 --- a/examples/bluetooth/nimble/ble_l2cap_coc/coc_blecent/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_l2cap_coc/coc_blecent/main/Kconfig.projbuild @@ -9,6 +9,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/ble_l2cap_coc/coc_bleprph/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_l2cap_coc/coc_bleprph/main/Kconfig.projbuild index e51f9a38b6..28393e4eb7 100644 --- a/examples/bluetooth/nimble/ble_l2cap_coc/coc_bleprph/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_l2cap_coc/coc_bleprph/main/Kconfig.projbuild @@ -51,6 +51,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/ble_periodic_adv/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_periodic_adv/main/Kconfig.projbuild index 3dca6ecbf7..46004b8005 100644 --- a/examples/bluetooth/nimble/ble_periodic_adv/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_periodic_adv/main/Kconfig.projbuild @@ -3,6 +3,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/ble_periodic_sync/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_periodic_sync/main/Kconfig.projbuild index 86199b5d91..c2a5a3d69a 100644 --- a/examples/bluetooth/nimble/ble_periodic_sync/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_periodic_sync/main/Kconfig.projbuild @@ -2,6 +2,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/ble_phy/phy_cent/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_phy/phy_cent/main/Kconfig.projbuild index 3f37c35634..f491ef56ad 100644 --- a/examples/bluetooth/nimble/ble_phy/phy_cent/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_phy/phy_cent/main/Kconfig.projbuild @@ -8,7 +8,8 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool - default y + default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/ble_phy/phy_prph/main/Kconfig.projbuild b/examples/bluetooth/nimble/ble_phy/phy_prph/main/Kconfig.projbuild index de90ea8627..3488cd409e 100644 --- a/examples/bluetooth/nimble/ble_phy/phy_prph/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/ble_phy/phy_prph/main/Kconfig.projbuild @@ -47,7 +47,8 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool - default y + default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/blecent/main/Kconfig.projbuild b/examples/bluetooth/nimble/blecent/main/Kconfig.projbuild index 411d97254b..33a8e0da09 100644 --- a/examples/bluetooth/nimble/blecent/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/blecent/main/Kconfig.projbuild @@ -9,6 +9,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example diff --git a/examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild b/examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild index 89cfef1c51..36f6b60f66 100644 --- a/examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild +++ b/examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild @@ -51,6 +51,7 @@ menu "Example Configuration" config EXAMPLE_EXTENDED_ADV bool default y if SOC_ESP_NIMBLE_CONTROLLER + select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER prompt "Enable Extended Adv" help Use this option to enable extended advertising in the example