From b6993b0837b03364aa07fdd88ac769fdcc4bda4c Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Tue, 1 Mar 2022 16:40:27 +0100 Subject: [PATCH] Bluetooth: Mesh: Extended advertiser should build without relay The extended advertiser would fail to build due to a missing kconfig option dependency when relay was disabled. Fixes #43172. Signed-off-by: Trond Einar Snekvik --- subsys/bluetooth/mesh/adv_ext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/bluetooth/mesh/adv_ext.c b/subsys/bluetooth/mesh/adv_ext.c index e779b39a5dd..c8d1de914d0 100644 --- a/subsys/bluetooth/mesh/adv_ext.c +++ b/subsys/bluetooth/mesh/adv_ext.c @@ -26,6 +26,10 @@ /* Convert from ms to 0.625ms units */ #define ADV_INT_FAST_MS 20 +#ifndef CONFIG_BT_MESH_RELAY_ADV_SETS +#define CONFIG_BT_MESH_RELAY_ADV_SETS 0 +#endif + enum { /** Controller is currently advertising */ ADV_FLAG_ACTIVE,