File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
subsys/bluetooth/controller Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -579,12 +579,28 @@ config BT_CTLR_CHANNEL_SOUNDING
579579 select EXPERIMENTAL
580580
581581config 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+
588604config 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments