Skip to content

Commit 02f9716

Browse files
ivaniushkovnordicjm
authored andcommitted
bluetooth: add Kconfig options to enable optional CS capabilities
added 3 new options to allow developers to use step mode-3 and multiple antenna during CS procedure Signed-off-by: Ivan Iushkov <[email protected]>
1 parent 92b2319 commit 02f9716

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

subsys/bluetooth/controller/Kconfig

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,12 +579,28 @@ config BT_CTLR_CHANNEL_SOUNDING
579579
select EXPERIMENTAL
580580

581581
config BT_CTLR_SDC_CS_COUNT
582-
int "Number of concurrent connections supporting CS procedure"
582+
int "Number of concurrent connections supporting CS procedure [EXPERIMENTAL]"
583583
default 1
584584
depends on BT_CTLR_CHANNEL_SOUNDING
585585
help
586586
Set the number of concurrent connections that can support Channel Sounding procedure.
587587

588+
config BT_CTLR_SDC_CS_MAX_ANTENNA_PATHS
589+
int "Max number of Channel Sounding antenna paths supported by the controller [EXPERIMENTAL]"
590+
default 1
591+
range 1 4
592+
depends on BT_CTLR_CHANNEL_SOUNDING
593+
594+
config BT_CTLR_SDC_CS_NUM_ANTENNAS
595+
int "Number of antennas used in Channel Sounding procedure supported by the controller [EXPERIMENTAL]"
596+
default 1
597+
range 1 BT_CTLR_SDC_CS_MAX_ANTENNA_PATHS
598+
depends on BT_CTLR_CHANNEL_SOUNDING
599+
600+
config BT_CTLR_SDC_CS_STEP_MODE3
601+
bool "Enable optional step mode-3 capability [EXPERIMENTAL]"
602+
depends on BT_CTLR_CHANNEL_SOUNDING
603+
588604
config BT_CTLR_SDC_LE_POWER_CLASS_1
589605
bool "Device supports transmitting at LE Power Class 1 level"
590606
default y if BT_CTLR_TX_PWR_ANTENNA >= 10

subsys/bluetooth/controller/hci_driver.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,19 @@ static int configure_memory_usage(void)
12251225
}
12261226
#endif
12271227

1228+
#if defined(CONFIG_BT_CTLR_SDC_CS_COUNT)
1229+
cfg.cs_cfg.max_antenna_paths_supported = CONFIG_BT_CTLR_SDC_CS_MAX_ANTENNA_PATHS;
1230+
cfg.cs_cfg.num_antennas_supported = CONFIG_BT_CTLR_SDC_CS_NUM_ANTENNAS;
1231+
cfg.cs_cfg.step_mode3_supported = IS_ENABLED(CONFIG_BT_CTLR_SDC_CS_STEP_MODE3);
1232+
1233+
required_memory = sdc_cfg_set(SDC_DEFAULT_RESOURCE_CFG_TAG,
1234+
SDC_CFG_TYPE_CS_CFG,
1235+
&cfg);
1236+
if (required_memory < 0) {
1237+
return required_memory;
1238+
}
1239+
#endif
1240+
12281241
LOG_DBG("BT mempool size: %u, required: %u",
12291242
sizeof(sdc_mempool), required_memory);
12301243

0 commit comments

Comments
 (0)